From ea4030804838dd2a11c30b2072412b765491fbfd Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 19 Mar 2019 22:07:53 +0000 Subject: [PATCH] Fixing automention --- src/Object/Post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Object/Post.php b/src/Object/Post.php index db7c665292..2890c87ecd 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) != 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'] . ' '; } -- 2.39.5