]> git.mxchange.org Git - friendica.git/commitdiff
Include author-alias to the field list in mod/photos
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 6 Mar 2024 17:07:43 +0000 (12:07 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 6 Mar 2024 17:07:43 +0000 (12:07 -0500)
- It's used to generate magic links of authors of comments on photos
- Address https://github.com/friendica/friendica/issues/13761#issuecomment-1980738080

mod/photos.php

index a8a62e8964bacaca417e94ab55f8ca83617ea1f2..95f95048b4d572b3ece40b8b59fde5a4403a1e30 100644 (file)
@@ -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']]);