mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
fix typo
This commit is contained in:
parent
d116029b22
commit
b07473426a
|
@ -116,7 +116,7 @@ def embed_formatter(post_type, post):
|
||||||
if post["_embedded"]["thread"][0]["tags"]:
|
if 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)))
|
tag_displayname.append("[{title}]({url})".format(title=tag["articleTitle"], url=create_article_path(tag["articleTitle"])))
|
||||||
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