mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
fix image license
This commit is contained in:
parent
eab022c51a
commit
b485a9f1f1
|
@ -219,13 +219,13 @@ def embed_upload_upload(ctx, change) -> DiscordMessage:
|
|||
except KeyError:
|
||||
logger.exception(
|
||||
"Unknown error when retriefing the image data for a license, full content: {}".format(image_data))
|
||||
if license is not None:
|
||||
embed["description"] += _("\nLicense: {}").format(license)
|
||||
if image_direct_url:
|
||||
embed.add_field(_("Options"), _("([preview]({link}))").format(link=image_direct_url))
|
||||
if settings["appearance"]["embed"]["embed_images"]:
|
||||
embed["image"]["url"] = image_direct_url
|
||||
embed_helper(ctx, embed, change)
|
||||
if license is not None:
|
||||
embed["description"] += _("\nLicense: {}").format(license)
|
||||
return embed
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue