mirror of
https://github.com/wassname/talk.git
synced 2026-07-26 13:37:38 +08:00
Q&A Fixes (#2866)
* Fix various Q&A moderation/tagging issues - Allow Staff members to have their questions answered and appropriately tagged - Properly filter answering for only top level questions (comments) - Add documentation around various moderation phases and comment creation steps - Remove unnecessary status filter when setting the status for a comment * fix: abstracted out perspective configs * fix: reworked tag injection * Fix sorting/unused imports Co-authored-by: Wyatt Johnson <accounts+github@wyattjoh.ca>
This commit is contained in:
co-authored by
Wyatt Johnson
parent
c052d37a6f
commit
769ab2a910
@@ -11,7 +11,6 @@ export const Actions = (ctx: GraphContext) => ({
|
||||
approveComment(
|
||||
ctx.mongo,
|
||||
ctx.redis,
|
||||
ctx.config,
|
||||
ctx.broker,
|
||||
ctx.tenant,
|
||||
input.commentID,
|
||||
@@ -23,7 +22,6 @@ export const Actions = (ctx: GraphContext) => ({
|
||||
rejectComment(
|
||||
ctx.mongo,
|
||||
ctx.redis,
|
||||
ctx.config,
|
||||
ctx.broker,
|
||||
ctx.tenant,
|
||||
input.commentID,
|
||||
|
||||
@@ -173,7 +173,6 @@ export const Comments = (ctx: GraphContext) => ({
|
||||
? approveComment(
|
||||
ctx.mongo,
|
||||
ctx.redis,
|
||||
ctx.config,
|
||||
ctx.broker,
|
||||
ctx.tenant,
|
||||
commentID,
|
||||
|
||||
@@ -15,6 +15,7 @@ export interface CommentStatusUpdatedInput extends SubscriptionPayload {
|
||||
oldStatus: GQLCOMMENT_STATUS;
|
||||
moderatorID: string | null;
|
||||
commentID: string;
|
||||
commentRevisionID: string;
|
||||
}
|
||||
|
||||
export type CommentStatusUpdatedSubscription = SubscriptionType<
|
||||
|
||||
Reference in New Issue
Block a user