🐛 Fix mastodon fetch didn't have user avatar
This commit is contained in:
parent
95d12a0a2d
commit
02da524aaa
@ -23,6 +23,7 @@ type FediverseUser struct {
|
||||
|
||||
Identifier string `json:"identifier" gorm:"uniqueIndex"`
|
||||
Origin string `json:"origin"`
|
||||
Avatar string `json:"avatar"`
|
||||
Name string `json:"name"`
|
||||
Nick string `json:"nick"`
|
||||
}
|
||||
|
@ -52,6 +52,7 @@ func (v MastodonPost) ToFediversePost() models.FediversePost {
|
||||
Identifier: v.Account.Acct,
|
||||
Name: v.Account.Username,
|
||||
Nick: v.Account.DisplayName,
|
||||
Avatar: v.Account.Avatar,
|
||||
Origin: v.Server,
|
||||
},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user