From 0513ec2422dc9f80d4e409b4caadb7cc92305343 Mon Sep 17 00:00:00 2001 From: Frisk Date: Mon, 13 Jun 2022 21:57:18 +0200 Subject: [PATCH] Added event type in context object for discussion events (#242) --- src/discussions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/discussions.py b/src/discussions.py index 3cd4e20..05232d1 100644 --- a/src/discussions.py +++ b/src/discussions.py @@ -121,6 +121,7 @@ def parse_discussion_post(post, comment_pages): discussion_logger.error("Could not parse paths for article comment, here is the content of comment_pages: {}, ignoring...".format(comment_pages)) raise ArticleCommentError event_type = f"discussion/{post_type.lower()}" + context.event = event_type context.set_comment_page(comment_page) run_hooks(pre_hooks, context, post) try: