fix(bot): 🐛 Replies not working if they're from the current channel.

This commit is contained in:
Nyeki.py
2024-10-19 23:54:33 -03:00
parent 5bc53f6af1
commit ea66f3a3ed
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -214,6 +214,7 @@ class Message(models.Model):
channel: fields.ForeignKeyRelation["Channel"] = fields.ForeignKeyField(
"models.Channel", related_name="messages", on_delete=fields.OnDelete.CASCADE
)
channel_id: int
user = fields.ForeignKeyRelation("models.User", on_delete=fields.OnDelete.CASCADE)
user_id: int
profile: fields.ForeignKeyRelation["Profile"] = fields.ForeignKeyField(