We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit be14e15d authored by mattl's avatar mattl

Hide attachments in notices by silenced profiles

parent fbcca62a
......@@ -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;
foreach ($attachments as $att) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment