mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 17:44:27 +02:00
Use reshare with Diaspora like with ActivityPub
This commit is contained in:
parent
ed805d1af2
commit
ca8a89ed1c
11 changed files with 108 additions and 84 deletions
|
@ -115,13 +115,17 @@ class Status extends BaseFactory
|
|||
'gravity' => Item::GRAVITY_ACTIVITY,
|
||||
'vid' => Verb::getID(Activity::ANNOUNCE),
|
||||
'deleted' => false
|
||||
], []);
|
||||
]) + Post::countPosts([
|
||||
'quote-uri-id' => $uriId,
|
||||
'deleted' => false
|
||||
]);
|
||||
|
||||
$count_like = Post::countPosts([
|
||||
'thr-parent-id' => $uriId,
|
||||
'gravity' => Item::GRAVITY_ACTIVITY,
|
||||
'vid' => Verb::getID(Activity::LIKE),
|
||||
'deleted' => false
|
||||
], []);
|
||||
]);
|
||||
|
||||
$counts = new \Friendica\Object\Api\Mastodon\Status\Counts(
|
||||
Post::countPosts(['thr-parent-id' => $uriId, 'gravity' => Item::GRAVITY_COMMENT, 'deleted' => false], []),
|
||||
|
@ -144,6 +148,11 @@ class Status extends BaseFactory
|
|||
'gravity' => Item::GRAVITY_ACTIVITY,
|
||||
'vid' => Verb::getID(Activity::ANNOUNCE),
|
||||
'deleted' => false
|
||||
]) || Post::exists([
|
||||
'quote-uri-id' => $uriId,
|
||||
'uid' => $uid,
|
||||
'origin' => true,
|
||||
'deleted' => false
|
||||
]);
|
||||
$userAttributes = new \Friendica\Object\Api\Mastodon\Status\UserAttributes(
|
||||
$origin_like,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue