diff --git a/litecord/blueprints/channels.py b/litecord/blueprints/channels.py index a4b6c45..bcaeeb2 100644 --- a/litecord/blueprints/channels.py +++ b/litecord/blueprints/channels.py @@ -799,7 +799,7 @@ async def suppress_embeds(channel_id: int, message_id: int): message["flags"] = message.get("flags", 0) | MessageFlags.suppress_embeds - await msg_update_embeds(message, [], app.storage, app.dispatcher) + await msg_update_embeds(message, []) elif not suppress and not url_embeds: # spawn process_url_embed to restore the embeds, if any await _msg_unset_flags(message_id, MessageFlags.suppress_embeds) diff --git a/litecord/blueprints/icons.py b/litecord/blueprints/icons.py index 9b0f378..a01509e 100644 --- a/litecord/blueprints/icons.py +++ b/litecord/blueprints/icons.py @@ -64,7 +64,7 @@ async def _get_default_user_avatar(default_id: int): async def _handle_webhook_avatar(md_url_redir: str): - md_url = make_md_req_url(app.config, "img", EmbedURL(md_url_redir)) + md_url = make_md_req_url("img", EmbedURL(md_url_redir)) return redirect(md_url) diff --git a/litecord/blueprints/webhooks.py b/litecord/blueprints/webhooks.py index 9a0be5f..47a1336 100644 --- a/litecord/blueprints/webhooks.py +++ b/litecord/blueprints/webhooks.py @@ -499,9 +499,7 @@ async def execute_webhook(webhook_id: int, webhook_token): await app.dispatcher.dispatch("channel", channel_id, "MESSAGE_CREATE", payload) # spawn embedder in the background, even when we're on a webhook. - app.sched.spawn( - process_url_embed(app.config, app.storage, app.dispatcher, app.session, payload) - ) + app.sched.spawn(process_url_embed(payload)) # we can assume its a guild text channel, so just call it await msg_guild_text_mentions(payload, guild_id, mentions_everyone, mentions_here)