mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 08:14:25 +02:00
Avoid quoting the own post
This commit is contained in:
parent
3e314d2fc6
commit
1dbc9bd472
6 changed files with 20 additions and 10 deletions
|
@ -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]];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue