From a1fda8f74ae45a838a5b0306fca3f1585b715899 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 9 May 2020 08:39:21 +0000 Subject: [PATCH] Dant try to add mentions on starting posts --- src/Model/Tag.php | 4 ++++ 1 file changed, 4 insertions(+) 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']); -- 2.39.5