X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FEvent.php;h=6f8ed123c17396bc4fd6e45f8405e13e33018967;hb=d53f46b9583737668a3314a22d1eeacb00a47db2;hp=1e4aed608bbd8c3edb7573338dd28269774781a5;hpb=0cf517ad76078b6dfa97809de78e6f156077945b;p=friendica.git diff --git a/src/Model/Event.php b/src/Model/Event.php index 1e4aed608b..6f8ed123c1 100644 --- a/src/Model/Event.php +++ b/src/Model/Event.php @@ -24,6 +24,7 @@ namespace Friendica\Model; use Friendica\Content\Text\BBCode; use Friendica\Core\Hook; use Friendica\Core\Logger; +use Friendica\Core\Protocol; use Friendica\Core\Renderer; use Friendica\Core\System; use Friendica\Database\DBA; @@ -370,6 +371,7 @@ class Event $item_arr['origin'] = $event['cid'] === 0 ? 1 : 0; $item_arr['body'] = self::getBBCode($event); $item_arr['event-id'] = $event['id']; + $item_arr['network'] = Protocol::DFRN; $item_arr['object'] = '' . XML::escape(Activity\ObjectType::EVENT) . '' . XML::escape($event['uri']) . ''; $item_arr['object'] .= '' . XML::escape(self::getBBCode($event)) . ''; @@ -615,10 +617,8 @@ class Event } $author_link = $event['author-link']; - $plink = $event['plink']; $event['author-link'] = Contact::magicLink($author_link); - $event['plink'] = Contact::magicLink($author_link, $plink); $html = self::getHTML($event); $event['summary'] = BBCode::convert(Strings::escapeHtml($event['summary'])); @@ -638,7 +638,7 @@ class Event 'is_first' => $is_first, 'item' => $event, 'html' => $html, - 'plink' => [$event['plink'], DI::l10n()->t('link to source'), '', ''], + 'plink' => Item::getPlink($event), ]; }