mirror of
https://github.com/friendica/friendica
synced 2024-11-09 16:22:56 +00:00
Include author-alias to the field list in mod/photos
- It's used to generate magic links of authors of comments on photos - Address https://github.com/friendica/friendica/issues/13761#issuecomment-1980738080
This commit is contained in:
parent
111df607bc
commit
8c4b2107b5
1 changed files with 1 additions and 1 deletions
|
@ -1039,7 +1039,7 @@ function photos_content(App $a)
|
|||
$pager = new Pager(DI::l10n(), DI::args()->getQueryString());
|
||||
|
||||
$params = ['order' => ['id'], 'limit' => [$pager->getStart(), $pager->getItemsPerPage()]];
|
||||
$items = Post::toArray(Post::selectForUser($link_item['uid'], Item::ITEM_FIELDLIST, $condition, $params));
|
||||
$items = Post::toArray(Post::selectForUser($link_item['uid'], array_merge(Item::ITEM_FIELDLIST, ['author-alias']), $condition, $params));
|
||||
|
||||
if (DI::userSession()->getLocalUserId() == $link_item['uid']) {
|
||||
Item::update(['unseen' => false], ['parent' => $link_item['parent']]);
|
||||
|
|
Loading…
Reference in a new issue