types: add RemoteUserAvatarURL to User
This commit is contained in:
parent
b37eddbe8b
commit
d0309db97f
@ -160,7 +160,9 @@ type UserResponse struct {
|
||||
}
|
||||
|
||||
type LinkedAccountResponse struct {
|
||||
RemoteSourceID string `json:"remote_source_id,omitempty"`
|
||||
RemoteSourceID string `json:"remote_source_id"`
|
||||
RemoteUserName string `json:"remote_user_name"`
|
||||
RemoteUserAvatarURL string `json:"remote_user_avatar_url"`
|
||||
}
|
||||
|
||||
func createUserResponse(u *types.User) *UserResponse {
|
||||
@ -177,7 +179,9 @@ func createUserResponse(u *types.User) *UserResponse {
|
||||
|
||||
for _, la := range u.LinkedAccounts {
|
||||
user.LinkedAccounts = append(user.LinkedAccounts, &LinkedAccountResponse{
|
||||
RemoteSourceID: la.RemoteSourceID,
|
||||
RemoteSourceID: la.RemoteSourceID,
|
||||
RemoteUserName: la.RemoteUserName,
|
||||
RemoteUserAvatarURL: la.RemoteUserAvatarURL,
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -206,8 +206,9 @@ type LinkedAccount struct {
|
||||
|
||||
ID string `json:"id,omitempty"`
|
||||
|
||||
RemoteUserID string `json:"remote_user_id,omitempty"`
|
||||
RemoteUserName string `json:"remote_username,omitempty"`
|
||||
RemoteUserID string `json:"remote_user_id,omitempty"`
|
||||
RemoteUserName string `json:"remote_username,omitempty"`
|
||||
RemoteUserAvatarURL string `json:"remote_user_avatar_url,omitempty"`
|
||||
|
||||
RemoteSourceID string `json:"remote_source_id,omitempty"`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user