mirror of
https://github.com/friendica/friendica
synced 2025-04-26 06:30:11 +00:00
Fix Mastodon API bookmark, mute, pin, reblog EPs temporarily by checking if blog in post func
This commit is contained in:
parent
7a556d1588
commit
b0fe1927d5
8 changed files with 34 additions and 10 deletions
|
@ -53,6 +53,9 @@ class Mute extends BaseApi
|
|||
|
||||
Post\ThreadUser::setIgnored($item['uri-id'], $uid, true);
|
||||
|
||||
System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes())->toArray());
|
||||
// @TODO Remove once mstdnStatus()->createFromUriId is fixed
|
||||
$isReblog = $item['uri-id'] != $this->parameters['id'];
|
||||
|
||||
System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, self::appSupportsQuotes(), $isReblog)->toArray());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue