diff --git a/Iceshrimp.Backend/Pages/Note.cshtml b/Iceshrimp.Backend/Pages/Note.cshtml index fb2c0a67..f72e9b0e 100644 --- a/Iceshrimp.Backend/Pages/Note.cshtml +++ b/Iceshrimp.Backend/Pages/Note.cshtml @@ -19,11 +19,12 @@ else var acct = "@" + note.User.Username + (note.User.IsLocalUser ? "" : "@" + note.User.Host); var displayName = note.User.DisplayName; var username = note.User.Username; + var url = note.User.UserProfile?.Url ?? note.User.Uri ?? note.User.GetPublicUrl(Model.WebDomain); var avatarUrl = note.User.AvatarUrl == null || !Model.ShowMedia ? note.User.IdenticonUrlPath : note.User.AvatarUrl;
- User avatar -
@name by @(displayName ?? username)
+ User avatar +
@name by @(displayName ?? username)
@acct
Published at: @note.CreatedAt.ToDisplayString() diff --git a/Iceshrimp.Backend/Pages/Note.cshtml.cs b/Iceshrimp.Backend/Pages/Note.cshtml.cs index f76f7603..ab917c39 100644 --- a/Iceshrimp.Backend/Pages/Note.cshtml.cs +++ b/Iceshrimp.Backend/Pages/Note.cshtml.cs @@ -27,6 +27,7 @@ public class NoteModel( public bool ShowMedia = security.Value.PublicPreview > Enums.PublicPreview.RestrictedNoMedia; public bool ShowRemoteReplies = security.Value.PublicPreview > Enums.PublicPreview.Restricted; public string InstanceName = "Iceshrimp.NET"; + public string WebDomain = config.Value.WebDomain; public Dictionary TextContent = new(); diff --git a/Iceshrimp.Backend/Pages/Note.cshtml.css b/Iceshrimp.Backend/Pages/Note.cshtml.css index 1402a0f4..8481cd32 100644 --- a/Iceshrimp.Backend/Pages/Note.cshtml.css +++ b/Iceshrimp.Backend/Pages/Note.cshtml.css @@ -41,4 +41,8 @@ .note { background-color: var(--background-body) +} + +.display-name { + color: var(--text-bright); } \ No newline at end of file