From: Michael Date: Mon, 11 Mar 2019 06:41:48 +0000 (+0000) Subject: Fix mentions - again X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=694cf50509565408360aafd91b2a2cd69d46e619;p=friendica.git Fix mentions - again --- diff --git a/src/Object/Post.php b/src/Object/Post.php index a4e3aed0c8..db7c665292 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -808,7 +808,7 @@ class Post extends BaseObject $terms = Term::tagArrayFromItemId($this->getId(), [Term::MENTION, Term::IMPLICIT_MENTION]); foreach ($terms as $term) { $profile = Contact::getDetailsByURL($term['url']); - if (!empty($profile['addr']) && (defaults($profile, 'contact-type') != Contact::TYPE_COMMUNITY) && + if (!empty($profile['addr']) && (defaults($profile, 'contact-type', Contact::TYPE_COMMUNITY) != Contact::TYPE_COMMUNITY) && ($profile['addr'] != $owner['addr']) && !strstr($text, $profile['addr'])) { $text .= '@' . $profile['addr'] . ' '; }