aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-01-12 11:04:03 +0000
committerMario <mario@mariovavti.com>2023-01-12 11:04:03 +0000
commitd092e79ebcfd34c71cc50f2d676eb097482e4d91 (patch)
tree423492d762ea734f0f918b70dae5d953521690f4 /Zotlabs/Lib
parent16555b93bbe4ef69dbbce8085bb366134f8a5654 (diff)
downloadvolse-hubzilla-d092e79ebcfd34c71cc50f2d676eb097482e4d91.tar.gz
volse-hubzilla-d092e79ebcfd34c71cc50f2d676eb097482e4d91.tar.bz2
volse-hubzilla-d092e79ebcfd34c71cc50f2d676eb097482e4d91.zip
remove fragment in notifier - it should not be required, when processing multiple choice polls sleep some time before calling the notifier
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Activity.php9
1 files changed, 8 insertions, 1 deletions
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;
}