From 9aa8a41389a52a141fcd969003ef2a06e1461114 Mon Sep 17 00:00:00 2001 From: uwaa Date: Sat, 30 Nov 2024 13:14:31 +0000 Subject: [PATCH] pleroma: fix null deref --- Pleroma/Models/Status.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pleroma/Models/Status.cs b/Pleroma/Models/Status.cs index 925266a..b8ae5a5 100644 --- a/Pleroma/Models/Status.cs +++ b/Pleroma/Models/Status.cs @@ -35,7 +35,7 @@ public class Status public bool Pinned { get; set; } [JsonIgnore] - public string Content => Pleroma?.Content.Plain ?? HtmlContent; + public string Content => Pleroma?.Content?.Plain ?? HtmlContent; public bool CheckMention(string id) {