From: Hypolite Petovan Date: Wed, 27 May 2020 12:23:15 +0000 (-0400) Subject: Assign default protocol to new events X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=05c3d02854339d3d87c2c913a3e7d19d7712b4f8;p=friendica.git Assign default protocol to new events - This restores event interactions on the items --- diff --git a/src/Model/Event.php b/src/Model/Event.php index 1e4aed608b..145632fdfc 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)) . '';