aboutsummaryrefslogtreecommitdiffstats
path: root/include/notifier.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-21 15:11:47 -0700
committerfriendica <info@friendica.com>2014-09-21 15:11:47 -0700
commite76ab304670741be338feb0f02cb977fb0e562fe (patch)
tree3c286fc80de651631c87ff855210c6cb03908ea0 /include/notifier.php
parent09b5bbb032116f9d984f557cdf43aa23fb65650a (diff)
downloadvolse-hubzilla-e76ab304670741be338feb0f02cb977fb0e562fe.tar.gz
volse-hubzilla-e76ab304670741be338feb0f02cb977fb0e562fe.tar.bz2
volse-hubzilla-e76ab304670741be338feb0f02cb977fb0e562fe.zip
we don't always set HUBLOC_FLAGS_DELETED but we often set hubloc_status = HUBLOC_OFFLINE instead. Filter this as well from deliveries.
Diffstat (limited to 'include/notifier.php')
-rw-r--r--include/notifier.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/notifier.php b/include/notifier.php
index 3f34d6133..0c7a15452 100644
--- a/include/notifier.php
+++ b/include/notifier.php
@@ -478,8 +478,9 @@ function notifier_run($argv, $argc){
}
else {
$r = q("select hubloc_guid, hubloc_url, hubloc_sitekey, hubloc_network, hubloc_flags, hubloc_callback, hubloc_host from hubloc
- where hubloc_hash in (" . implode(',',$recipients) . ") and not (hubloc_flags & %d) group by hubloc_sitekey",
- intval(HUBLOC_FLAGS_DELETED)
+ where hubloc_hash in (" . implode(',',$recipients) . ") and not (hubloc_flags & %d) and not (hubloc_status & %d) group by hubloc_sitekey",
+ intval(HUBLOC_FLAGS_DELETED),
+ intval(HUBLOC_OFFLINE)
);
}