mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02: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
|
@ -65,6 +65,9 @@ class Bookmark extends BaseApi
|
|||
|
||||
Item::update(['starred' => true], ['id' => $item['id']]);
|
||||
|
||||
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