remove unauthorized mediaSize in GQL FETCH_PERSON

This commit is contained in:
Massedil 2024-06-19 18:47:10 +02:00
parent c237b276ca
commit 745b4a82d1
1 changed files with 4 additions and 1 deletions

View File

@ -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`
query FetchPerson($username: String!) {
fetchPerson(preferredUsername: $username) {
...ActorFragment
suspended
mediaSize
avatar {
id
name