{{*
* Copyright (C) 2010-2024, the Friendica project
* SPDX-FileCopyrightText: 2010-2024 the Friendica project
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*}}
{{$l10n.visible_to}}
{{if !$aclReceivers->isEmpty()}}
{{foreach from=$aclReceivers->allowCircles item=circle name=allowCircles}}
{{$circle}}
{{if !$smarty.foreach.allowCircles.last}}, {{/if}}
{{/foreach}}
{{if $aclReceivers->allowContacts && $aclReceivers->allowCircles}}, {{/if}}
{{foreach from=$aclReceivers->allowContacts item=contact name=allowContacts}}
{{$contact}}
{{if !$smarty.foreach.allowContacts.last}}, {{/if}}
{{/foreach}}
{{if $aclReceivers->denyCircles && ($aclReceivers->allowContacts || $aclReceivers->allowCircles)}}, {{/if}}
{{foreach from=$aclReceivers->denyCircles item=circle name=denyCircles}}
{{$circle}}
{{if !$smarty.foreach.denyCircles.last}}, {{/if}}
{{/foreach}}
{{if $aclReceivers->denyContacts && ($aclReceivers->denyCircles || $aclReceivers->allowContacts || $aclReceivers->allowCircles)}}, {{/if}}
{{foreach from=$aclReceivers->denyContacts item=contact name=denyContacts}}
{{$contact}}
{{if !$smarty.foreach.denyContacts.last}}, {{/if}}
{{/foreach}}
{{elseif !$addressedReceivers->isEmpty()}}
{{if $addressedReceivers->to}}
{{$l10n.to}}
{{', '|join:$addressedReceivers->to}}
{{/if}}
{{if $addressedReceivers->cc}}
{{$l10n.cc}}
{{', '|join:$addressedReceivers->cc}}
{{/if}}
{{if $addressedReceivers->bcc}}
{{$l10n.bcc}}
{{', '|join:$addressedReceivers->bcc}}
{{/if}}
{{if $addressedReceivers->audience}}
{{$l10n.audience}}
{{', '|join:$addressedReceivers->audience}}
{{/if}}
{{if $addressedReceivers->attributed}}
{{$l10n.attributed}}
{{', '|join:$addressedReceivers->attributed}}
{{/if}}
{{else}}
{{$privacy}}
{{/if}}