aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-09-25 20:34:36 -0700
committerredmatrix <mike@macgirvin.com>2016-09-25 20:34:36 -0700
commitbba7fe24e91b5899035df42afb31276a6c6f1d8b (patch)
treebe1cb0b7b8f5dbb5efb61d809851ef291fb82e1d /Zotlabs
parentbfc2552841ce0a018e70dae16fddf690a892b49d (diff)
downloadvolse-hubzilla-bba7fe24e91b5899035df42afb31276a6c6f1d8b.tar.gz
volse-hubzilla-bba7fe24e91b5899035df42afb31276a6c6f1d8b.tar.bz2
volse-hubzilla-bba7fe24e91b5899035df42afb31276a6c6f1d8b.zip
subtle indicator of your own response verb activity
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/ThreadItem.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php
index a1e721dd7..2bab4a0ca 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -174,6 +174,11 @@ class ThreadItem {
$responses = get_responses($conv_responses,$response_verbs,$this,$item);
+ $my_responses = [];
+ foreach($response_verbs as $v) {
+ $my_responses[$v] = (($conv_responses[$v][$item['mid'] . '-m']) ? 1 : 0);
+ }
+
$like_count = ((x($conv_responses['like'],$item['mid'])) ? $conv_responses['like'][$item['mid']] : '');
$like_list = ((x($conv_responses['like'],$item['mid'])) ? $conv_responses['like'][$item['mid'] . '-l'] : '');
if (count($like_list) > MAX_LIKERS) {
@@ -381,6 +386,7 @@ class ThreadItem {
'list_unseen_txt' => $list_unseen_txt,
'markseen' => t('Mark all seen'),
'responses' => $responses,
+ 'my_responses' => $my_responses,
'like_count' => $like_count,
'like_list' => $like_list,
'like_list_part' => $like_list_part,