Avoid quoting the own post

This commit is contained in:
Michael 2023-09-24 10:18:50 +00:00
parent 3e314d2fc6
commit 1dbc9bd472
6 changed files with 20 additions and 10 deletions

View file

@ -602,7 +602,7 @@ class UserNotification
*/
private static function checkQuoted(array $item, array $contacts): bool
{
if (empty($item['quote-uri-id'])) {
if (empty($item['quote-uri-id']) || ($item['quote-uri-id'] == $item['uri-id'])) {
return false;
}
$condition = ['uri-id' => $item['quote-uri-id'], 'uid' => $item['uid'], 'author-id' => $contacts, 'deleted' => false, 'gravity' => [item::GRAVITY_PARENT, Item::GRAVITY_COMMENT]];