mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
Fixed an issue when all of action tags are hidden
This commit is contained in:
parent
83e88ac326
commit
eb9312a637
|
@ -53,4 +53,5 @@ class DomainManager:
|
|||
for domain in self.domains.values():
|
||||
domain.run_domain()
|
||||
|
||||
|
||||
domains = DomainManager()
|
||||
|
|
|
@ -1141,7 +1141,8 @@ async def embed_formatter(action, change, parsed_comment, categories, recent_cha
|
|||
tag_displayname.append(additional_data["tags"][tag])
|
||||
else:
|
||||
tag_displayname.append(tag)
|
||||
embed.add_field(_("Tags"), ", ".join(tag_displayname))
|
||||
if tag_displayname:
|
||||
embed.add_field(_("Tags"), ", ".join(tag_displayname))
|
||||
if len(embed["title"]) > 254:
|
||||
embed["title"] = embed["title"][0:253]+"…"
|
||||
logger.debug("Current params in edit action: {}".format(change))
|
||||
|
|
Loading…
Reference in a new issue