media handling
This commit is contained in:
@ -61,6 +61,12 @@ func StandardDBSetup(db db.DB) error {
|
||||
}
|
||||
}
|
||||
|
||||
for _, v := range TestAttachments() {
|
||||
if err := db.Put(v); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
for _, v := range TestStatuses() {
|
||||
if err := db.Put(v); err != nil {
|
||||
return err
|
||||
|
||||
@ -440,6 +440,14 @@ func TestAccounts() map[string]*gtsmodel.Account {
|
||||
return accounts
|
||||
}
|
||||
|
||||
func TestAttachments() map[string]*gtsmodel.MediaAttachment {
|
||||
return map[string]*gtsmodel.MediaAttachment{
|
||||
"admin_account_status_1": {
|
||||
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func TestStatuses() map[string]*gtsmodel.Status {
|
||||
return map[string]*gtsmodel.Status{
|
||||
"admin_account_status_1": {
|
||||
|
||||
Reference in New Issue
Block a user