X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fattachmentlist.php;h=0ce19b0b1ed38c66859d34113a18932ba269ce4d;hb=586fb5a5175d7a10f5f78dd026434e48202e5451;hp=4d4b4511672aa0167697df58727a81a07533ce6d;hpb=d4be5349b30f49fa049dbfc854bb2a95eeb1d5c1;p=quix0rs-gnu-social.git diff --git a/lib/attachmentlist.php b/lib/attachmentlist.php index 4d4b451167..0ce19b0b1e 100644 --- a/lib/attachmentlist.php +++ b/lib/attachmentlist.php @@ -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) {