mirror of
https://github.com/friendica/friendica
synced 2025-04-24 00:30:11 +00:00
Issue 14134: Allow reshare posts from Bluesky and Tumblr
This commit is contained in:
parent
765af10f00
commit
55fb52299d
3 changed files with 3 additions and 3 deletions
|
@ -54,7 +54,7 @@ class Retweet extends BaseApi
|
|||
$item = Post::selectFirst($fields, ['uri-id' => $id, 'uid' => [0, $uid], 'private' => [Item::PUBLIC, Item::UNLISTED]], ['order' => ['uid' => true]]);
|
||||
|
||||
if (DBA::isResult($item) && !empty($item['body'])) {
|
||||
if (in_array($item['network'], [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::TWITTER])) {
|
||||
if (in_array($item['network'], [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::BLUESKY, Protocol::TUMBLR, Protocol::TWITTER])) {
|
||||
if (!Item::performActivity($id, 'announce', $uid)) {
|
||||
throw new InternalServerErrorException();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue