From d092e79ebcfd34c71cc50f2d676eb097482e4d91 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 12 Jan 2023 11:04:03 +0000 Subject: remove fragment in notifier - it should not be required, when processing multiple choice polls sleep some time before calling the notifier --- Zotlabs/Lib/Activity.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Zotlabs/Lib/Activity.php') diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 4a14b1ba1..1a1031909 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -2183,7 +2183,14 @@ class Activity { if ($u) { dbq("COMMIT"); - Master::Summon(['Notifier', 'wall-new', $item['id']/* , $post['mid'] trick queueworker de-duplication */ ]); + + if ($multi) { + // wait some seconds for possible multiple answers to be processed + // before calling the notifier + sleep(3); + } + + Master::Summon(['Notifier', 'wall-new', $item['id']]); return true; } -- cgit v1.2.3