Defaults and start of config

This commit is contained in:
mStar 2024-05-31 17:21:29 +02:00
parent 3086b0e9b4
commit 1fbdf7fc9d
6 changed files with 128 additions and 10 deletions

View file

@ -26,3 +26,19 @@ type Note struct {
OriginServer string // Url of the origin server. Also the primary key for those
Tags []string `gorm:"serializer:json"` // Hashtags
}
var placeholderNote = &Note{
ID: "placeholder",
Creator: "placeholder",
Remote: false,
RawContent: "placeholder",
ContentWarning: nil,
Attachments: []string{},
Emotes: []string{},
RepliesTo: nil,
Quotes: nil,
Target: NOTE_TARGET_HOME,
Pings: []string{},
OriginServer: "placeholder",
Tags: []string{},
}