Remove block/ignore links from contact/item action menus for self

This commit is contained in:
Hypolite Petovan 2021-05-04 08:45:27 -04:00
parent 77cea819fb
commit 98c2ca34f5
2 changed files with 10 additions and 6 deletions

View file

@ -223,9 +223,12 @@ class Post
$drop = [
'dropping' => $dropping,
'pagedrop' => $item['pagedrop'],
'select' => DI::l10n()->t('Select'),
'delete' => $delete,
'select' => DI::l10n()->t('Select'),
'delete' => $delete,
];
}
if (!$item['self']) {
$block = [
'blocking' => true,
'block' => DI::l10n()->t('Block %s', $item['author-name']),