[backend/razor] Don't render attachment count for link previews when there are no attachments
This commit is contained in:
parent
828b742a3f
commit
72c0db55e3
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ else
|
|||
else
|
||||
{
|
||||
var text = Model.Note.Text;
|
||||
if (attachments != null)
|
||||
if (attachments is { Count: > 0 })
|
||||
{
|
||||
var attachmentText = $"({attachments.Count} attachments)";
|
||||
if (string.IsNullOrWhiteSpace(text))
|
||||
|
|
Loading…
Add table
Reference in a new issue