From: Michael Date: Sat, 9 May 2020 08:39:21 +0000 (+0000) Subject: Dant try to add mentions on starting posts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a1fda8f74ae45a838a5b0306fca3f1585b715899;p=friendica.git Dant try to add mentions on starting posts --- diff --git a/src/Model/Tag.php b/src/Model/Tag.php index bbe516e49b..41c6de1117 100644 --- a/src/Model/Tag.php +++ b/src/Model/Tag.php @@ -333,6 +333,10 @@ class Tag */ public static function createImplicitMentions(int $uri_id, int $parent_uri_id) { + if ($uri_id == $parent_uri_id) { + return; + } + // Always mention the direct parent author $parent = Item::selectFirst(['author-link', 'author-name'], ['uri-id' => $parent_uri_id]); self::store($uri_id, self::IMPLICIT_MENTION, $parent['author-name'], $parent['author-link']);