]> git.mxchange.org Git - friendica.git/commitdiff
Fixing automention
authorMichael <heluecht@pirati.ca>
Tue, 19 Mar 2019 22:07:53 +0000 (22:07 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 19 Mar 2019 22:07:53 +0000 (22:07 +0000)
src/Object/Post.php

index db7c665292cb66ac0409c84a187f7e07099316f6..2890c87ecda72f379ef702c7638cdc0eb5bc7bc5 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) != Contact::TYPE_COMMUNITY) &&
+                       if (!empty($profile['addr']) && (defaults($profile, 'contact-type', Contact::TYPE_UNKNOWN) != Contact::TYPE_COMMUNITY) &&
                                ($profile['addr'] != $owner['addr']) && !strstr($text, $profile['addr'])) {
                                $text .= '@' . $profile['addr'] . ' ';
                        }