diff options
-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(), |