diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-02-10 17:50:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-10 17:50:54 +0100 |
commit | d29293e01908ea140f7c26e78fb5ae89668f6120 (patch) | |
tree | d198c0bb863d8de1aa548a304c6452d031a1cb8b /apps | |
parent | 1a9e6f1571b04946c0214cb49a565427190803c0 (diff) | |
parent | c47c0b90d9e5c99d72301b42bf02bf1e8fce6470 (diff) | |
download | nextcloud-server-d29293e01908ea140f7c26e78fb5ae89668f6120.tar.gz nextcloud-server-d29293e01908ea140f7c26e78fb5ae89668f6120.zip |
Merge pull request #31079 from nextcloud/ignore-self-contact-interaction
Ignore contact interaction with self
Diffstat (limited to 'apps')
-rw-r--r-- | apps/contactsinteraction/lib/Listeners/ContactInteractionListener.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/contactsinteraction/lib/Listeners/ContactInteractionListener.php b/apps/contactsinteraction/lib/Listeners/ContactInteractionListener.php index 21991007ee7..333a6393920 100644 --- a/apps/contactsinteraction/lib/Listeners/ContactInteractionListener.php +++ b/apps/contactsinteraction/lib/Listeners/ContactInteractionListener.php @@ -84,6 +84,11 @@ class ContactInteractionListener implements IEventListener { return; } + if ($event->getUid() !== null && $event->getUid() === $event->getActor()->getUID()) { + $this->logger->info("Ignoring contact interaction with self"); + return; + } + $existing = $this->mapper->findMatch( $event->getActor(), $event->getUid(), |