From d52fd6ba58a883a49f5b691d4db53e5d1fc78e61 Mon Sep 17 00:00:00 2001 From: Guillermo Serrahima Date: Fri, 20 Mar 2026 01:18:24 +0100 Subject: Single post handler --- backend/notes/note.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'backend/notes/note.go') diff --git a/backend/notes/note.go b/backend/notes/note.go index 591caff..569188c 100644 --- a/backend/notes/note.go +++ b/backend/notes/note.go @@ -26,6 +26,15 @@ type Facet struct { Value string `json:"value"` // the link destination, whether url, profile or tag } +func MissingNote(uri string) *Note { + return &Note{ + URI: uri, + AuthorDID: "MISSING", + Text: "This post could not be fetched. It may have been deleted.", + CreatedAt: time.Time{}, + } +} + func isChainContained(smallChain, bigChain []string) bool { if len(smallChain) > len(bigChain) { return false -- cgit v1.2.3