mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-10 21:24:26 +02:00
Move GET item/ignore/{id} to POST item/{id}/ignore
This commit is contained in:
parent
586d39420e
commit
6d31c11e57
3 changed files with 20 additions and 15 deletions
|
@ -728,8 +728,8 @@ function doPin(ident) {
|
|||
function doIgnoreThread(ident) {
|
||||
ident = ident.toString();
|
||||
$('#like-rotator-' + ident).show();
|
||||
$.get('item/ignore/' + ident, function(data) {
|
||||
if (data === 1) {
|
||||
$.post('item/' + ident + '/ignore', function(data) {
|
||||
if (data.state === 1) {
|
||||
$('#ignored-' + ident)
|
||||
.addClass('ignored')
|
||||
.removeClass('unignored');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue