mirror of
https://github.com/friendica/friendica
synced 2025-04-20 17:10:10 +00:00
[frio] Add connector-based privacy display
This commit is contained in:
parent
5b8f78f728
commit
18b32b68aa
4 changed files with 10 additions and 3 deletions
|
@ -177,6 +177,8 @@ class Post
|
|||
? DI::l10n()->t('Private Message')
|
||||
: false);
|
||||
|
||||
$connector = !$item['global'] ? DI::l10n()->t('Connector Message') : false;
|
||||
|
||||
$shareable = in_array($conv->getProfileOwner(), [0, local_user()]) && $item['private'] != Item::PRIVATE;
|
||||
$announceable = $shareable && in_array($item['network'], [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::DIASPORA, Protocol::TWITTER]);
|
||||
|
||||
|
@ -469,6 +471,7 @@ class Post
|
|||
'app' => $item['app'],
|
||||
'created' => $ago,
|
||||
'lock' => $lock,
|
||||
'connector' => $connector,
|
||||
'location_html' => $location_html,
|
||||
'indent' => $indent,
|
||||
'shiny' => $shiny,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue