mirror of
https://github.com/friendica/friendica
synced 2025-04-23 19:10:13 +00:00
Move GET starred/{id} to POST item/{id}/star
This commit is contained in:
parent
5d270fbb54
commit
b31fc3bfa9
3 changed files with 33 additions and 17 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue