Merge pull request #11426 from annando/notice

Avoid warning " Undefined variable $browsershare"
This commit is contained in:
Hypolite Petovan 2022-04-20 09:40:49 -04:00 committed by GitHub
commit e1a8f8aff6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -447,6 +447,8 @@ class Post
if (in_array($item['private'], [Item::PUBLIC, Item::UNLISTED]) && in_array($item['network'], Protocol::FEDERATED)) {
$browsershare = [DI::l10n()->t('Share via ...'), DI::l10n()->t('Share via external services')];
} else {
$browsershare = null;
}
$tmp_item = [