]> git.mxchange.org Git - friendica.git/commitdiff
use magic links in single event view
authorrabuzarus <rabuzarus@t-online.de>
Wed, 5 Sep 2018 23:42:35 +0000 (01:42 +0200)
committerrabuzarus <rabuzarus@t-online.de>
Wed, 5 Sep 2018 23:42:35 +0000 (01:42 +0200)
src/Model/Event.php

index 992b77badabaf8042907aae3df0b7d5af4eb0353..016d1f8d9e3974a47ec0197223a1ec4fda5ece83 100644 (file)
@@ -12,6 +12,7 @@ use Friendica\Core\L10n;
 use Friendica\Core\PConfig;
 use Friendica\Core\System;
 use Friendica\Database\DBA;
+use Friendica\Model\Contact;
 use Friendica\Util\DateTimeFormat;
 use Friendica\Util\Map;
 
@@ -589,6 +590,12 @@ class Event extends BaseObject
                                $title = strip_tags(html_entity_decode($title, ENT_QUOTES, 'UTF-8'));
                        }
 
+                       $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['desc']     = BBCode::convert($event['desc']);
                        $event['location'] = BBCode::convert($event['location']);