mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Update src/rcgcdw.py, src/discussions.py
This commit is contained in:
parent
c8b8f325e9
commit
eb20e8e100
|
@ -29,7 +29,7 @@ from src.exceptions import ArticleCommentError, NoFormatter
|
|||
from src.api.util import default_message
|
||||
from src.api.context import Context
|
||||
from src.api.hooks import formatter_hooks, pre_hooks, post_hooks
|
||||
from src.i18n import formatters_i18n
|
||||
|
||||
|
||||
|
||||
# Create a custom logger
|
||||
|
@ -109,7 +109,7 @@ def parse_discussion_post(post, comment_pages):
|
|||
"""Initial post recognition & handling"""
|
||||
global client
|
||||
post_type = post["_embedded"]["thread"][0]["containerType"]
|
||||
context = Context(display_mode, "discussion", webhook_url, client, formatters_i18n, settings)
|
||||
context = Context(display_mode, "discussion", webhook_url, client)
|
||||
# Filter posts by forum
|
||||
if post_type == "FORUM" and settings["fandom_discussions"].get("show_forums", []):
|
||||
if not post["forumName"] in settings["fandom_discussions"]["show_forums"]:
|
||||
|
|
|
@ -279,7 +279,7 @@ def abuselog_processing(entry):
|
|||
action = "abuselog"
|
||||
if action in settings["ignored"]:
|
||||
return
|
||||
context = Context(settings["appearance"]["mode"], "abuselog", settings["webhookURL"], client, formatters_i18n, settings)
|
||||
context = Context(settings["appearance"]["mode"], "abuselog", settings["webhookURL"], client)
|
||||
context.event = action
|
||||
run_hooks(pre_hooks, context, entry)
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue