mirror of
https://github.com/versia-pub/versia-go.git
synced 2026-03-13 04:29:15 +01:00
fix(user): move the collections to their own sub-struct
This commit is contained in:
parent
cb135706e2
commit
0223ea0535
3 changed files with 30 additions and 24 deletions
|
|
@ -102,11 +102,13 @@ func (u User) ToVersia() *versia.User {
|
|||
Bio: u.Biography,
|
||||
Fields: u.Fields,
|
||||
|
||||
Inbox: u.Inbox,
|
||||
Outbox: u.Outbox,
|
||||
Featured: u.Featured,
|
||||
Followers: u.Followers,
|
||||
Following: u.Following,
|
||||
Inbox: u.Inbox,
|
||||
Collections: versia.UserCollections{
|
||||
versia.UserCollectionOutbox: u.Outbox,
|
||||
versia.UserCollectionFeatured: u.Featured,
|
||||
versia.UserCollectionFollowing: u.Following,
|
||||
versia.UserCollectionFollowers: u.Followers,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue