]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Notify.php
Avoid multiple lines in post-view, added thread view
[friendica.git] / src / Model / Notify.php
index fe1497316fc5428224a6a5ef4feccca1d6935b3d..bb7453d325b28a22b1575a0c03d813b7d156241e 100644 (file)
@@ -43,7 +43,7 @@ use Psr\Log\LoggerInterface;
  * @property integer parent Parent Item Id
  * @property boolean seen   Whether the notification was read or not.
  * @property string  verb   Verb URL (@see http://activitystrea.ms)
- * @property string  otype  Subject type (`item`, `intro` or `mail`)
+ * @property string  otype  Subject type ('item', 'intro' or 'mail')
  *
  * @property-read string name_cache Full name of the contact subject
  * @property-read string msg_cache  Plaintext version of the notification text with a placeholder (`{0}`) for the subject contact's name.
@@ -70,7 +70,7 @@ class Notify extends BaseModel
        private function setNameCache()
        {
                try {
-                       $this->name_cache = strip_tags(BBCode::convert($this->source_name ?? ''));
+                       $this->name_cache = strip_tags(BBCode::convert($this->source_name));
                } catch (InternalServerErrorException $e) {
                }
        }