*/
public function getTemplateData(array $conv_responses, string $formSecurityToken, $thread_level = 1)
{
- $a = DI::app();
-
$item = $this->getData();
$edited = false;
// If the time between "created" and "edited" differs we add
? 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]);
'app' => $item['app'],
'created' => $ago,
'lock' => $lock,
+ 'connector' => $connector,
'location_html' => $location_html,
'indent' => $indent,
'shiny' => $shiny,
'owner_photo' => DI::baseUrl()->remove(Contact::getAvatarUrlForUrl($item['owner-link'], $item['uid'], Proxy::SIZE_THUMB)),
'owner_name' => $this->getOwnerName(),
'plink' => Item::getPlink($item),
+ 'browsershare' => DI::l10n()->t('Share'),
'edpost' => $edpost,
'ispinned' => $ispinned,
'pin' => $pin,