mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-11 06:37:28 -06:00
media handling
This commit is contained in:
parent
f210d39891
commit
a30a1a267b
8 changed files with 431 additions and 1 deletions
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue