aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-09-06 11:32:27 +0000
committerMario <mario@mariovavti.com>2022-09-06 11:32:27 +0000
commit9beee689ce5537d0b64f20ccfe461eeb7c41ffa8 (patch)
treec77c0df79ce6a9e60b21bb6a451c781a9bf298ca
parent2c388c3833772797753a27ae62d8ba80cba1cc88 (diff)
downloadvolse-hubzilla-9beee689ce5537d0b64f20ccfe461eeb7c41ffa8.tar.gz
volse-hubzilla-9beee689ce5537d0b64f20ccfe461eeb7c41ffa8.tar.bz2
volse-hubzilla-9beee689ce5537d0b64f20ccfe461eeb7c41ffa8.zip
fix display of star and dreport links
-rw-r--r--Zotlabs/Lib/ThreadItem.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php
index a02c1415e..0422d81d0 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -283,14 +283,11 @@ class ThreadItem {
$this->check_wall_to_wall();
if($this->is_toplevel()) {
- // FIXME check this permission
- if($conv->get_profile_owner() === local_channel() || intval($item['item_private']) === 0) {
-
- $star = array(
+ if(($conv->get_profile_owner() === local_channel()) || (local_channel() && App::$module === 'pubstream')) {
+ $star = [
'toggle' => t("Toggle Star Status"),
'isstarred' => ((intval($item['item_starred'])) ? true : false),
- );
-
+ ];
}
}
else {
@@ -352,7 +349,7 @@ class ThreadItem {
if($keep_reports === 0)
$keep_reports = 10;
- if((! get_config('system','disable_dreport')) && strcmp(datetime_convert('UTC','UTC',$item['created']),datetime_convert('UTC','UTC',"now - $keep_reports days")) > 0) {
+ if((intval($item['item_type']) == ITEM_TYPE_POST) && (! get_config('system','disable_dreport')) && strcmp(datetime_convert('UTC','UTC',$item['created']),datetime_convert('UTC','UTC',"now - $keep_reports days")) > 0) {
$dreport = t('Delivery Report');
$dreport_link = gen_link_id($item['mid']);
}