diff --git a/remarkbox/api/views.py b/remarkbox/api/views.py index 6ede2e1..2b47885 100644 --- a/remarkbox/api/views.py +++ b/remarkbox/api/views.py @@ -550,9 +550,13 @@ def api_create_thread(request): node_event = node.new_event(user, "commented") request.dbsession.add(user) - if spam_held: + if spam_result.get("action") == "held": node.approved = False + # Store spam data on node for moderation UI + node.spam_score = spam_result.get("spam_score") + node.spam_reason = spam_result.get("spam_reason") + # Bump thread root.changed = node.changed root._invalidate_cache()