Fixes discussion formatter as per 5aab6222f9

This commit is contained in:
Frisk 2020-12-06 11:01:59 +01:00
parent 3a45643e28
commit 9708281a38
No known key found for this signature in database
GPG key ID: 213F7C15068AF8AC

View file

@ -52,6 +52,7 @@ def compact_formatter(post_type, post, article_paths):
elif post_type == "ARTICLE_COMMENT":
if article_paths is None:
article_paths = {"title": _("unknown"), "fullUrl": settings["fandom_discussions"]["wiki_url"]} # No page known
article_paths["fullUrl"] = article_paths["fullUrl"].replace(")", "\)").replace("()", "\(")
if not post["isReply"]:
message = "🗒️ "+_(
"[{author}]({author_url}) created a [comment](<{url}?commentId={commentId}>) on [{article}](<{url}>)").format(