mirror of
https://github.com/friendica/friendica
synced 2025-04-25 15:50:10 +00:00
New functions for the post-view view
This commit is contained in:
parent
5211c12b0c
commit
11d2440425
5 changed files with 105 additions and 32 deletions
|
@ -49,7 +49,7 @@ class FavouritedBy extends BaseApi
|
|||
DI::mstdnError()->RecordNotFound();
|
||||
}
|
||||
|
||||
$activities = Post::select(['author-id'], ['thr-parent-id' => $id, 'gravity' => GRAVITY_ACTIVITY, 'verb' => Activity::LIKE], [], false);
|
||||
$activities = Post::selectPosts(['author-id'], ['thr-parent-id' => $id, 'gravity' => GRAVITY_ACTIVITY, 'verb' => Activity::LIKE]);
|
||||
|
||||
$accounts = [];
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ class RebloggedBy extends BaseApi
|
|||
DI::mstdnError()->RecordNotFound();
|
||||
}
|
||||
|
||||
$activities = Post::select(['author-id'], ['thr-parent-id' => $id, 'gravity' => GRAVITY_ACTIVITY, 'verb' => Activity::ANNOUNCE], [], false);
|
||||
$activities = Post::selectPosts(['author-id'], ['thr-parent-id' => $id, 'gravity' => GRAVITY_ACTIVITY, 'verb' => Activity::ANNOUNCE]);
|
||||
|
||||
$accounts = [];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue