Start work on media storage
This commit is contained in:
parent
bf8d272122
commit
9acecfd7f6
10 changed files with 110 additions and 48 deletions
|
@ -21,11 +21,11 @@ type MediaMetadata struct {
|
|||
DeletedAt gorm.DeletedAt `gorm:"index"`
|
||||
OwnedBy string // Account id this media belongs to
|
||||
Remote bool // whether the attachment is a remote one
|
||||
// Where the media is stored. Url if remote file, file path if local
|
||||
// Where the media is stored. Url
|
||||
Location string
|
||||
Type string // What media type this is following mime types, eg image/png
|
||||
// Descriptive name for a media file
|
||||
// Emote name for example or servername.filetype for a server's icon
|
||||
// Name of the file
|
||||
// Could be <emote-name>.png, <server-name>.webp for example. Or the name the file was uploaded with
|
||||
Name string
|
||||
// Alternative description of the media file's content
|
||||
AltText string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue