aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Channel.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-09-03 21:41:47 +0200
committerMario Vavti <mario@mariovavti.com>2017-09-03 21:41:47 +0200
commit5ae2d15dc065e89d139dc43d50ac129a557a04c7 (patch)
tree95dd462b280d05ce8af9c68d9dfdadf986a8a753 /Zotlabs/Module/Channel.php
parentdc18440c18549a07b31c7506316e7a4bd40b9712 (diff)
downloadvolse-hubzilla-5ae2d15dc065e89d139dc43d50ac129a557a04c7.tar.gz
volse-hubzilla-5ae2d15dc065e89d139dc43d50ac129a557a04c7.tar.bz2
volse-hubzilla-5ae2d15dc065e89d139dc43d50ac129a557a04c7.zip
this fixes an issue where in /channel/membername?mid=some_mid updates did not work when static updates were enabled. since in the current situation we always get a top-level-post mid, item_thread_top = 0 in the query will never return a result. change it to item_thread_top = 1
Diffstat (limited to 'Zotlabs/Module/Channel.php')
-rw-r--r--Zotlabs/Module/Channel.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Channel.php b/Zotlabs/Module/Channel.php
index 95d8f3734..d82ed8e5d 100644
--- a/Zotlabs/Module/Channel.php
+++ b/Zotlabs/Module/Channel.php
@@ -194,7 +194,7 @@ class Channel extends \Zotlabs\Web\Controller {
$simple_update = '';
if($static && $simple_update)
- $simple_update .= " and item_thread_top = 0 and author_xchan = '" . protect_sprintf(get_observer_hash()) . "' ";
+ $simple_update .= " and item_thread_top = 1 and author_xchan = '" . protect_sprintf(get_observer_hash()) . "' ";
if(($update) && (! $load)) {