diff options
| author | Guillermo Serrahima <dev@vylion.com> | 2026-03-20 01:18:24 +0100 |
|---|---|---|
| committer | Guillermo Serrahima <dev@vylion.com> | 2026-03-20 19:55:05 +0100 |
| commit | d52fd6ba58a883a49f5b691d4db53e5d1fc78e61 (patch) | |
| tree | b4f43324c439f8e935be00a67aeeb16a2967f68f /backend/notes | |
| parent | c2472b20ae056bee40cec95fe11bbbef04651d52 (diff) | |
| download | llostre-d52fd6ba58a883a49f5b691d4db53e5d1fc78e61.tar.xz llostre-d52fd6ba58a883a49f5b691d4db53e5d1fc78e61.zip | |
Single post handler
Diffstat (limited to 'backend/notes')
| -rw-r--r-- | backend/notes/note.go | 9 |
1 files changed, 9 insertions, 0 deletions
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 |
