aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-01-31 18:39:07 +0100
committerMax Kostikov <max@kostikov.co>2019-01-31 18:39:07 +0100
commit004246163dd4482ae1d0d442d30256db8ed1535a (patch)
tree4f3f6db1c64fd60fcb3a156ddbbc321d037e6151
parenta2cae45f005c9feacd0b42d26b1f66a61333d66e (diff)
downloadvolse-hubzilla-004246163dd4482ae1d0d442d30256db8ed1535a.tar.gz
volse-hubzilla-004246163dd4482ae1d0d442d30256db8ed1535a.tar.bz2
volse-hubzilla-004246163dd4482ae1d0d442d30256db8ed1535a.zip
starring and filing is only supported for post item type
-rw-r--r--Zotlabs/Lib/ThreadItem.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php
index 83d243177..dc84df316 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -411,9 +411,9 @@ class ThreadItem {
'rawmid' => $item['mid'],
'plink' => get_plink($item),
'edpost' => $edpost, // ((feature_enabled($conv->get_profile_owner(),'edit_posts')) ? $edpost : ''),
- 'star' => ((feature_enabled($conv->get_profile_owner(),'star_posts')) ? $star : ''),
+ 'star' => ((feature_enabled($conv->get_profile_owner(),'star_posts') && ($item['item_type'] == ITEM_TYPE_POST)) ? $star : ''),
'tagger' => ((feature_enabled($conv->get_profile_owner(),'commtag')) ? $tagger : ''),
- 'filer' => ((feature_enabled($conv->get_profile_owner(),'filing')) ? $filer : ''),
+ 'filer' => ((feature_enabled($conv->get_profile_owner(),'filing') && ($item['item_type'] == ITEM_TYPE_POST)) ? $filer : ''),
'bookmark' => (($conv->get_profile_owner() == local_channel() && local_channel() && $has_bookmarks) ? t('Save Bookmarks') : ''),
'addtocal' => (($has_event) ? t('Add to Calendar') : ''),
'drop' => $drop,