aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/ThreadItem.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-05-23 22:11:13 +0200
committerMario Vavti <mario@mariovavti.com>2018-05-23 22:11:13 +0200
commit9cf8931136c703c66d0bf83e4c6b8fb7f4d2cf0b (patch)
treee8417e561ac7445a4018c0cf3bf722779493c430 /Zotlabs/Lib/ThreadItem.php
parentafb29176a4e301d4e4b247e0d28084e2936c8899 (diff)
downloadvolse-hubzilla-9cf8931136c703c66d0bf83e4c6b8fb7f4d2cf0b.tar.gz
volse-hubzilla-9cf8931136c703c66d0bf83e4c6b8fb7f4d2cf0b.tar.bz2
volse-hubzilla-9cf8931136c703c66d0bf83e4c6b8fb7f4d2cf0b.zip
paint the locks on private activitypub items red. their privacy model is "slightly" different from ours
Diffstat (limited to 'Zotlabs/Lib/ThreadItem.php')
-rw-r--r--Zotlabs/Lib/ThreadItem.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php
index c7a2c9373..0fed78158 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -102,6 +102,9 @@ class ThreadItem {
if($item['author']['xchan_network'] === 'rss')
$shareable = true;
+ $privacy_warning = false;
+ if($item['owner']['xchan_network'] === 'activitypub')
+ $privacy_warning = true;
$mode = $conv->get_mode();
@@ -370,6 +373,7 @@ class ThreadItem {
'editedtime' => (($item['edited'] != $item['created']) ? sprintf( t('last edited: %s'), datetime_convert('UTC', date_default_timezone_get(), $item['edited'], 'r')) : ''),
'expiretime' => (($item['expires'] > NULL_DATE) ? sprintf( t('Expires: %s'), datetime_convert('UTC', date_default_timezone_get(), $item['expires'], 'r')):''),
'lock' => $lock,
+ 'privacy_warning' => $privacy_warning,
'verified' => $verified,
'unverified' => $unverified,
'forged' => $forged,