]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Event.php
Automatically set to "seen"
[friendica.git] / src / Model / Event.php
index e6c60928320d4db60dde4d6b1ba208c586060902..604b1ffcc859aaa337adfaf59ec5ac0c92a0b457 100644 (file)
@@ -930,7 +930,9 @@ class Event
                $location = self::locationToArray($item['event-location']);
 
                // Construct the profile link (magic-auth).
-               $profile_link = Contact::magicLinkById($item['author-id']);
+               $author = ['uid' => 0, 'id' => $item['author-id'],
+                               'network' => $item['author-network'], 'url' => $item['author-link']];
+               $profile_link = Contact::magicLinkByContact($author);
 
                $tpl = Renderer::getMarkupTemplate('event_stream_item.tpl');
                $return = Renderer::replaceMacros($tpl, [