]> git.mxchange.org Git - friendica.git/commitdiff
Assign default protocol to new events
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 27 May 2020 12:23:15 +0000 (08:23 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 27 May 2020 12:23:15 +0000 (08:23 -0400)
- This restores event interactions on the items

src/Model/Event.php

index 1e4aed608bbd8c3edb7573338dd28269774781a5..145632fdfcefb8d34e0c3fbc22bb27b4aa2f2939 100644 (file)
@@ -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']  = '<object><type>' . XML::escape(Activity\ObjectType::EVENT) . '</type><title></title><id>' . XML::escape($event['uri']) . '</id>';
                                $item_arr['object'] .= '<content>' . XML::escape(self::getBBCode($event)) . '</content>';