mirror of
https://github.com/friendica/friendica
synced 2024-11-18 17:03:41 +00:00
Fixing automention
This commit is contained in:
parent
1c244f7621
commit
ea40308048
1 changed files with 1 additions and 1 deletions
|
@ -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'] . ' ';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue