mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
fix typo
This commit is contained in:
parent
a12c6d9cd0
commit
8a545bc23e
|
@ -113,7 +113,7 @@ async def feeds_embed_formatter(post_type, post, message_target, wiki):
|
||||||
if message_target[0][1] > 1 and post["_embedded"]["thread"][0]["tags"]:
|
if message_target[0][1] > 1 and post["_embedded"]["thread"][0]["tags"]:
|
||||||
tag_displayname = []
|
tag_displayname = []
|
||||||
for tag in post["_embedded"]["thread"][0]["tags"]:
|
for tag in post["_embedded"]["thread"][0]["tags"]:
|
||||||
tag_displayname.append("[{title}]({url})".format(title=tag.articleTitle, url=create_article_path(tag.articleTitle, wiki + "wiki/$1")))
|
tag_displayname.append("[{title}]({url})".format(title=tag["articleTitle"], url=create_article_path(tag["articleTitle"], wiki + "wiki/$1")))
|
||||||
if len(", ".join(tag_displayname)) > 1000:
|
if len(", ".join(tag_displayname)) > 1000:
|
||||||
embed.add_field(_("Tags"), _("{} tags").format(len(post["_embedded"]["thread"][0]["tags"])))
|
embed.add_field(_("Tags"), _("{} tags").format(len(post["_embedded"]["thread"][0]["tags"])))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue