mirror of
https://github.com/friendica/friendica
synced 2025-04-22 17:50:11 +00:00
Diaspora announce / Renaming share buttons
This commit is contained in:
parent
f3fd99da60
commit
dbdc8c91f6
3 changed files with 221 additions and 178 deletions
|
@ -176,7 +176,7 @@ class Post
|
|||
: false);
|
||||
|
||||
$shareable = in_array($conv->getProfileOwner(), [0, local_user()]) && $item['private'] != Item::PRIVATE;
|
||||
$announceable = $shareable && in_array($item['network'], [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::TWITTER]);
|
||||
$announceable = $shareable && in_array($item['network'], [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::DIASPORA, Protocol::TWITTER]);
|
||||
|
||||
$edpost = false;
|
||||
|
||||
|
@ -346,10 +346,10 @@ class Post
|
|||
$buttons['like'] = [DI::l10n()->t("I like this \x28toggle\x29") , DI::l10n()->t("like")];
|
||||
$buttons['dislike'] = [DI::l10n()->t("I don't like this \x28toggle\x29"), DI::l10n()->t("dislike")];
|
||||
if ($shareable) {
|
||||
$buttons['share'] = [DI::l10n()->t('Share this'), DI::l10n()->t('Share')];
|
||||
$buttons['share'] = [DI::l10n()->t('Quote and share this'), DI::l10n()->t('Quoted Share')];
|
||||
}
|
||||
if ($announceable) {
|
||||
$buttons['announce'] = [DI::l10n()->t('Announce this'), DI::l10n()->t('Announce')];
|
||||
$buttons['announce'] = [DI::l10n()->t('Share this'), DI::l10n()->t('Share')];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue