🐛 Fix attachment url issue
This commit is contained in:
parent
cef0a552f4
commit
7b9aebd5d7
@ -44,14 +44,14 @@ type Account struct {
|
|||||||
|
|
||||||
func (v Account) GetAvatar() *string {
|
func (v Account) GetAvatar() *string {
|
||||||
if v.Avatar != nil {
|
if v.Avatar != nil {
|
||||||
return lo.ToPtr(fmt.Sprintf("%s/api/attachments/%d", viper.GetString("content_endpoint"), *v.Avatar))
|
return lo.ToPtr(fmt.Sprintf("%s/%d", viper.GetString("content_endpoint"), *v.Avatar))
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v Account) GetBanner() *string {
|
func (v Account) GetBanner() *string {
|
||||||
if v.Banner != nil {
|
if v.Banner != nil {
|
||||||
return lo.ToPtr(fmt.Sprintf("%s/api/attachments/%d", viper.GetString("content_endpoint"), *v.Banner))
|
return lo.ToPtr(fmt.Sprintf("%s/%d", viper.GetString("content_endpoint"), *v.Banner))
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user