]> git.mxchange.org Git - friendica.git/commitdiff
Dant try to add mentions on starting posts
authorMichael <heluecht@pirati.ca>
Sat, 9 May 2020 08:39:21 +0000 (08:39 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 9 May 2020 08:39:21 +0000 (08:39 +0000)
src/Model/Tag.php

index bbe516e49b3105d3cdc96b5ad39057371d9aa2db..41c6de11176056c4c444e6d296478f921f435c85 100644 (file)
@@ -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']);