Fix Fandom recent change in API

This commit is contained in:
Frisk 2024-08-29 23:11:19 +02:00
parent 60d635ccfd
commit f2b948dba6

View file

@ -464,6 +464,8 @@ async def discussion_handler():
comment_events = []
targets = await generate_targets(db_wiki["wiki"], "AND NOT postid = '-1'")
for post in discussion_feed:
if not post:
continue
if post["_embedded"]["thread"][0]["containerType"] == "ARTICLE_COMMENT" and post["id"] > db_wiki["postid"]:
comment_events.append(post["forumId"])
comment_pages: dict = {}