]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Tag.php
Dant try to add mentions on starting posts
[friendica.git] / 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']);