@page "/notes/{id}" @using Iceshrimp.Backend.Core.Database.Tables @using Iceshrimp.Backend.Core.Extensions @model NoteModel @if (Model.Note == null) { Response.StatusCode = 404;
This note either doesn't exist or is only accessible to authenticated users
This post has attachments, but this server's configuration prevents them from being displayed here.
return; } @foreach (var file in files) { if (file.Type.StartsWith("image/")) {This post is quoting @displayUrl, but that post either has been deleted or is not publicly visible.
} ViewData["title"] = $"Note by @{Model.Note.User.Username} - Iceshrimp.NET"; @section head { @{ Model.MediaAttachments.TryGetValue(Model.Note.Id, out var attachments); } @if (Model.Note.Cw != null) { } else { var text = Model.Note.Text; if (attachments != null) { var attachmentText = $"({attachments.Count} attachments)"; if (string.IsNullOrWhiteSpace(text)) text = attachmentText; else text += $"\n{attachmentText}"; } } @if (Model.ShowMedia && attachments != null) { if (attachments.Any(p => p.Type.StartsWith("image/"))) { } } }This server's configuration is preventing remotely originating content from being shown. This view may therefore be incomplete.
} }