diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-05-23 22:11:13 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-05-23 22:11:13 +0200 |
commit | 9cf8931136c703c66d0bf83e4c6b8fb7f4d2cf0b (patch) | |
tree | e8417e561ac7445a4018c0cf3bf722779493c430 | |
parent | afb29176a4e301d4e4b247e0d28084e2936c8899 (diff) | |
download | volse-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
-rw-r--r-- | Zotlabs/Lib/ThreadItem.php | 4 | ||||
-rwxr-xr-x | view/tpl/conv_item.tpl | 2 |
2 files changed, 5 insertions, 1 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, diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index f72737d82..6baf06dda 100755 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -43,7 +43,7 @@ </div> {{if $item.lock}} <div class="wall-item-lock dropdown"> - <i class="fa fa-lock lockview" data-toggle="dropdown" title="{{$item.lock}}" onclick="lockview('item',{{$item.id}});" ></i> + <i class="fa fa-lock lockview{{if $item.privacy_warning}} text-danger{{/if}}" data-toggle="dropdown" title="{{$item.lock}}" onclick="lockview('item',{{$item.id}});" ></i> <div id="panel-{{$item.id}}" class="dropdown-menu"></div> </div> {{/if}} |