Move GET /like/{id} to POST /item/{id}/activity/{verb}

This commit is contained in:
Hypolite Petovan 2021-01-30 17:11:54 -05:00
parent 3a18669730
commit 151db1104a
3 changed files with 24 additions and 22 deletions

View file

@ -669,7 +669,7 @@ function doActivityItem(ident, verb, un) {
unpause();
$('#like-rotator-' + ident.toString()).show();
verb = un ? 'un' + verb : verb;
$.get('like/' + ident.toString() + '?verb=' + verb, NavUpdate);
$.post('item/' + ident.toString() + '/activity/' + verb, NavUpdate);
liking = 1;
force_update = true;
update_item = ident.toString();