mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 04:43:55 +08:00

We usually don't enforce foreign key relationships on the database level. Because of that, occasionally it's possible to see a chat message that references to a non-existent chat_channel or user. MessagesExporter failed in such case before, this PR fixes that.