]> git.mxchange.org Git - friendica.git/commitdiff
Fix mentions - again
authorMichael <heluecht@pirati.ca>
Mon, 11 Mar 2019 06:41:48 +0000 (06:41 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 11 Mar 2019 06:41:48 +0000 (06:41 +0000)
src/Object/Post.php

index a4e3aed0c89defac8b78a99706dd00f039b5a22a..db7c665292cb66ac0409c84a187f7e07099316f6 100644 (file)
@@ -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'] . ' ';
                        }