aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-01-31 18:39:07 +0100
committerMax Kostikov <max@kostikov.co>2019-01-31 18:39:07 +0100
commit76582a60b561d037c3f7016dbb3f05fb48429aff (patch)
tree4f3f6db1c64fd60fcb3a156ddbbc321d037e6151
parenta2cae45f005c9feacd0b42d26b1f66a61333d66e (diff)
parent004246163dd4482ae1d0d442d30256db8ed1535a (diff)
downloadvolse-hubzilla-76582a60b561d037c3f7016dbb3f05fb48429aff.tar.gz
volse-hubzilla-76582a60b561d037c3f7016dbb3f05fb48429aff.tar.bz2
volse-hubzilla-76582a60b561d037c3f7016dbb3f05fb48429aff.zip
Merge branch 'core_fixes' into 'dev'
starring and filing is only supported for post item type See merge request hubzilla/core!1498
-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,