mirror of
https://github.com/wassname/talk.git
synced 2026-08-14 12:50:17 +08:00
createComment and suspect list
This commit is contained in:
+1
-1
@@ -118,7 +118,7 @@ const createPublicComment = (context, commentInput) => {
|
||||
// If the comment was flagged as being suspect, we need to add a
|
||||
// flag to it to indicate that it needs to be looked at.
|
||||
// Otherwise just return the new comment.
|
||||
if (wordlist.suspect) {
|
||||
if (wordlist != null && wordlist.suspect) {
|
||||
|
||||
// TODO: this is kind of fragile, we should refactor this to resolve
|
||||
// all these const's that we're using like 'comments', 'flag' to be
|
||||
|
||||
Reference in New Issue
Block a user