Exposed comment and meta fields in GraphQL API.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user