diff --git a/payphone/cogs/calls/cog.py b/payphone/cogs/calls/cog.py index e95e176..0c98bce 100644 --- a/payphone/cogs/calls/cog.py +++ b/payphone/cogs/calls/cog.py @@ -1010,7 +1010,7 @@ class Calls(base.Cog): call_rss = await models.CallUserChannelRelationship.filter( call_id=channel.call_id - ) + ).select_related("profile") cleaned_content = formatting.clean(original_message, call_rss) diff --git a/payphone/core/formatting.py b/payphone/core/formatting.py index e7a893f..4d7a717 100644 --- a/payphone/core/formatting.py +++ b/payphone/core/formatting.py @@ -159,7 +159,8 @@ def clean( Args: message (discord.Message): The message to clean. - call_rss (list[models.CallUserChannelRelationship]): The call's relationships. + call_rss (list[models.CallUserChannelRelationship]): The call's relationships. They must + have pre-selected their `profile` relation. Returns: str: The cleaned message content.