From 745b4a82d18870efb0a15f7f3ea3a9296ea24eec Mon Sep 17 00:00:00 2001 From: Massedil Date: Wed, 19 Jun 2024 18:47:10 +0200 Subject: [PATCH] remove unauthorized mediaSize in GQL FETCH_PERSON --- src/graphql/actor.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/graphql/actor.ts b/src/graphql/actor.ts index 32fa6a550..e55427264 100644 --- a/src/graphql/actor.ts +++ b/src/graphql/actor.ts @@ -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 and can be used by simple users here +// - FETCH_PERSON is also used in but mediaSize is not used there export const FETCH_PERSON = gql` query FetchPerson($username: String!) { fetchPerson(preferredUsername: $username) { ...ActorFragment suspended - mediaSize avatar { id name