Move GET starred/{id} to POST item/{id}/star

This commit is contained in:
Hypolite Petovan 2021-01-30 17:52:01 -05:00
parent 5d270fbb54
commit b31fc3bfa9
3 changed files with 33 additions and 17 deletions

View file

@ -685,7 +685,7 @@ function dosubthread(ident) {
function doStar(ident) {
ident = ident.toString();
$('#like-rotator-' + ident).show();
$.get('starred/' + ident)
$.post('item/' + ident + '/star')
.then(function(data) {
if (data.state === 1) {
$('#starred-' + ident)