mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Fixed #194
This commit is contained in:
parent
cab2d86481
commit
fcde6265b5
|
@ -150,7 +150,7 @@ def embed_formatter(post_type, post, article_paths):
|
|||
if post["_embedded"]["thread"][0]["tags"]:
|
||||
tag_displayname = []
|
||||
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(quote_plus(tag["articleTitle"].replace(" ", "_"), "/:?=&"))))
|
||||
if len(", ".join(tag_displayname)) > 1000:
|
||||
embed.add_field(_("Tags"), _("{} tags").format(len(post["_embedded"]["thread"][0]["tags"])))
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue