diff options
author | lain <lain@soykaf.club> | 2020-05-11 10:58:14 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-05-11 10:58:14 +0200 |
commit | fdb98715b8e6ced7c4037b1292fb10980a994803 (patch) | |
tree | d20d9551899d2b4f222f4567c4d26ed7f5fadd22 /lib | |
parent | 1b1dfb54eb092921fe9dab2c49928e5b04fa049b (diff) | |
download | pleroma-fdb98715b8e6ced7c4037b1292fb10980a994803.tar.gz |
Chat: Fix wrong query.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/chat.ex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/chat.ex b/lib/pleroma/chat.ex index 6a03ee3c1..4c92a58c7 100644 --- a/lib/pleroma/chat.ex +++ b/lib/pleroma/chat.ex @@ -29,6 +29,7 @@ defmodule Pleroma.Chat do def last_message_for_chat(chat) do messages_for_chat_query(chat) |> order_by(desc: :id) + |> limit(1) |> Repo.one() end |