]> git.mxchange.org Git - friendica.git/commitdiff
Add missing post keys to retrieve pLink in Model\Event::prepareListForTemplate()
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 12 Oct 2022 02:08:54 +0000 (22:08 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 12 Oct 2022 02:18:52 +0000 (22:18 -0400)
- Address https://github.com/friendica/friendica/issues/11632#issuecomment-1275117722

src/Model/Event.php

index 712e5861ac23ef40954128fd3c3c13e1c1a08e6f..db66a330f9cf05b9de6015d0c630301498019992 100644 (file)
@@ -580,7 +580,7 @@ class Event
                $last_date = '';
                $fmt = DI::l10n()->t('l, F j');
                foreach ($event_result as $event) {
-                       $item = Post::selectFirst(['plink', 'author-name', 'author-avatar', 'author-link', 'private', 'uri-id'], ['id' => $event['itemid']]);
+                       $item = Post::selectFirst(['plink', 'author-name', 'author-network', 'author-id', 'author-avatar', 'author-link', 'private', 'uri-id'], ['id' => $event['itemid']]);
                        if (!DBA::isResult($item)) {
                                // Using default values when no item had been found
                                $item = ['plink' => '', 'author-name' => '', 'author-avatar' => '', 'author-link' => '', 'private' => Item::PUBLIC, 'uri-id' => ($event['uri-id'] ?? 0)];