From 547f92de070f425b9b0415c7aa87b173c630a2b0 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Fri, 1 Apr 2016 06:51:19 +0200 Subject: [PATCH] Don't fail deleteRelated on NoProfileException --- lib/activityhandlerplugin.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/activityhandlerplugin.php b/lib/activityhandlerplugin.php index 8f28da85d6..c06f723a36 100644 --- a/lib/activityhandlerplugin.php +++ b/lib/activityhandlerplugin.php @@ -279,6 +279,10 @@ abstract class ActivityHandlerPlugin extends Plugin if ($this->isMyNotice($notice)) { try { $this->deleteRelated($notice); + } catch (NoProfileException $e) { + // we failed because of database lookup failure, Notice has no recognized profile as creator + // so we skip this. If we want to remove missing notices we should do a SQL constraints check + // in the affected plugin. } catch (AlreadyFulfilledException $e) { // Nothing to see here, it's obviously already gone... } -- 2.39.5