diff options
author | lain <lain@soykaf.club> | 2020-04-15 18:23:16 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-04-15 18:23:16 +0200 |
commit | 6ace22b56a3ced833bd990de5715048d6bd32f80 (patch) | |
tree | 5a25770b3c34a73e74987689158c53d40c7bb1a9 /lib/pleroma/web/common_api/common_api.ex | |
parent | 44bfb491eae00d541e6d11c8b52b5de5bc0bd34e (diff) | |
download | pleroma-6ace22b56a3ced833bd990de5715048d6bd32f80.tar.gz |
Chat: Add views, don't return them in timeline queries.
Diffstat (limited to 'lib/pleroma/web/common_api/common_api.ex')
-rw-r--r-- | lib/pleroma/web/common_api/common_api.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/common_api/common_api.ex b/lib/pleroma/web/common_api/common_api.ex index 2f13daf0c..c306c1e96 100644 --- a/lib/pleroma/web/common_api/common_api.ex +++ b/lib/pleroma/web/common_api/common_api.ex @@ -24,7 +24,7 @@ defmodule Pleroma.Web.CommonAPI do require Pleroma.Constants require Logger - def post_chat_message(user, recipient, content) do + def post_chat_message(%User{} = user, %User{} = recipient, content) do transaction = Repo.transaction(fn -> with {_, {:ok, chat_message_data, _meta}} <- |