remove unauthorized mediaSize in GQL FETCH_PERSON
This commit is contained in:
parent
c237b276ca
commit
745b4a82d1
|
@ -16,12 +16,15 @@ export const ACTOR_FRAGMENT = gql`
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
// Do not request mediaSize here because mediaSize can only be accessed
|
||||||
|
// by user_himself/moderator/administrator (can_get_actor_size? in media.ex)
|
||||||
|
// - FETCH_PERSON is used by <NewConversation> and can be used by simple users here
|
||||||
|
// - FETCH_PERSON is also used in <EditIdentity> but mediaSize is not used there
|
||||||
export const FETCH_PERSON = gql`
|
export const FETCH_PERSON = gql`
|
||||||
query FetchPerson($username: String!) {
|
query FetchPerson($username: String!) {
|
||||||
fetchPerson(preferredUsername: $username) {
|
fetchPerson(preferredUsername: $username) {
|
||||||
...ActorFragment
|
...ActorFragment
|
||||||
suspended
|
suspended
|
||||||
mediaSize
|
|
||||||
avatar {
|
avatar {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
|
|
Loading…
Reference in New Issue