X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FEvent.php;h=145632fdfcefb8d34e0c3fbc22bb27b4aa2f2939;hb=c6aa42dd4ee431f47eef690e980e429e934400df;hp=1f20482d53f2d1f43a6d95ed00f1b529f0310108;hpb=ab8997f9db910ba70c592bf106a7f5fc41a55b2d;p=friendica.git diff --git a/src/Model/Event.php b/src/Model/Event.php index 1f20482d53..145632fdfc 100644 --- a/src/Model/Event.php +++ b/src/Model/Event.php @@ -1,6 +1,22 @@ . + * */ namespace Friendica\Model; @@ -8,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; @@ -354,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)) . ''; @@ -595,7 +613,7 @@ class Event $title = BBCode::convert(Strings::escapeHtml($event['summary'])); if (!$title) { - list($title, $_trash) = explode("