1
0
Fork 0

Moved the check for a comment to a different place

This commit is contained in:
Michael 2020-05-09 15:50:49 +00:00
commit 258e9df064
2 changed files with 1 additions and 5 deletions

View file

@ -333,10 +333,6 @@ 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']);