aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-01-12 15:54:27 +0100
committerMario Vavti <mario@mariovavti.com>2018-01-12 15:54:27 +0100
commitdb08e2cea0703818b7f3515271d7603c78d1e648 (patch)
tree35b4d363332f6a5b236abadd64f603b58cc861e3 /Zotlabs
parent47c14d3ca1078ca1c3d94096542f14a7a537266e (diff)
downloadvolse-hubzilla-db08e2cea0703818b7f3515271d7603c78d1e648.tar.gz
volse-hubzilla-db08e2cea0703818b7f3515271d7603c78d1e648.tar.bz2
volse-hubzilla-db08e2cea0703818b7f3515271d7603c78d1e648.zip
mod hq: stick to show latest unseen toplevel post on load
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Hq.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Hq.php b/Zotlabs/Module/Hq.php
index ec3858471..aa8293d5c 100644
--- a/Zotlabs/Module/Hq.php
+++ b/Zotlabs/Module/Hq.php
@@ -52,7 +52,7 @@ class Hq extends \Zotlabs\Web\Controller {
if(! $item_hash) {
$r = q("SELECT mid FROM item
WHERE uid = %d $item_normal
- AND item_unseen = 1
+ AND mid = parent_ mid AND item_unseen = 1
ORDER BY created DESC LIMIT 1",
intval(local_channel())
);
@@ -135,7 +135,7 @@ class Hq extends \Zotlabs\Web\Controller {
$o = replace_macros(get_markup_template("hq.tpl"),
[
'$no_messages' => (($target_item) ? false : true),
- '$no_messages_label' => [ t('Welcome to Hubzilla!'), t('You have got no unseen activity...') ],
+ '$no_messages_label' => [ t('Welcome to Hubzilla!'), t('You have got no unseen posts...') ],
'$editor' => status_editor($a,$x)
]
);