aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/chat.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pleroma/chat.ex')
-rw-r--r--lib/pleroma/chat.ex4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/pleroma/chat.ex b/lib/pleroma/chat.ex
index b38c5c3dd..84f8806a0 100644
--- a/lib/pleroma/chat.ex
+++ b/lib/pleroma/chat.ex
@@ -76,9 +76,7 @@ defmodule Pleroma.Chat do
def for_user_query(user_id) do
from(c in Chat,
where: c.user_id == ^user_id,
- order_by: [desc: c.updated_at],
- inner_join: u in User,
- on: u.ap_id == c.recipient
+ order_by: [desc: c.updated_at]
)
end
end