Hide attachments in notices by silenced profiles
This commit is contained in:
parent
fbcca62ae1
commit
be14e15dac
|
@ -85,6 +85,12 @@ class AttachmentList extends Widget
|
|||
return 0;
|
||||
}
|
||||
|
||||
if ($this->notice->getProfile()->isSilenced()) {
|
||||
// TRANS: Message for inline attachments list in notices when the author has been silenced.
|
||||
$this->element('div', ['class'=>'error'], _('Attachments are hidden because this profile has been silenced.'));
|
||||
return 0;
|
||||
}
|
||||
|
||||
$this->showListStart();
|
||||
|
||||
foreach ($attachments as $att) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user