Skip to content

Commit

Permalink
Include author-alias to the field list in mod/photos
Browse files Browse the repository at this point in the history
- It's used to generate magic links of authors of comments on photos
- Address friendica#13761 (comment)
  • Loading branch information
MrPetovan committed Mar 6, 2024
1 parent 111df60 commit 8c4b210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/photos.php
Expand Up @@ -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']]);
Expand Down

0 comments on commit 8c4b210

Please sign in to comment.