paint the locks on private activitypub items red. their privacy model is "slightly" different from ours
This commit is contained in:
parent
afb29176a4
commit
9cf8931136
@ -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,
|
||||
|
@ -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}}
|
||||
|
Reference in New Issue
Block a user