Exposed comment and meta fields in GraphQL API.

This commit is contained in:
2025-04-04 05:36:47 +02:00
parent 538e6ede5b
commit 0dabbc7233
7 changed files with 53 additions and 2 deletions

View File

@@ -35,6 +35,8 @@ export function curateStash(stash, assets = {}) {
avatar: `/media/avatars/${assets.user.id}_${assets.user.username}.png`,
createdAt: assets.user.created_at,
} : null,
comment: stash.comment,
meta: stash.meta,
};
return curatedStash;
@@ -61,6 +63,8 @@ function curateStashEntry(stash, user) {
name: stash.name || undefined,
slug: slugify(stash.name) || undefined,
public: stash.isPublic ?? false,
comment: stash.comment,
meta: stash.meta,
};
return curatedStashEntry;