Added aliases and stashes to GraphQL actor.

This commit is contained in:
2026-07-06 22:08:56 +02:00
parent beddc9c7ef
commit 5383f9bfc4
2 changed files with 14 additions and 3 deletions

View File

@@ -108,8 +108,11 @@ export const actorsSchema = `
hasTattoos: Boolean
tattoos: String
piercings: String
entity: Entity
aliases: [Actor!]!
scenes: Int
likes: Int
stashes: [Stash!]!
}
`;
@@ -154,7 +157,7 @@ export async function fetchActorsGraphql(query, req) {
page: query.page,
order: getOrder(query),
aggregateCountries: false,
});
}, req.user);
return {
nodes: actors.map((actor) => curateGraphqlActor(actor)),