diff options
author | lain <lain@soykaf.club> | 2019-05-08 18:19:20 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-05-08 18:19:20 +0200 |
commit | e6d7f8d223b2604df38f8efa8baf09e2c607c487 (patch) | |
tree | 7c8ed92176c984e7c85c7ba2a9f779ea5a5aa34c | |
parent | 6d19bb4eae43270099a68f749519ba0f323da01a (diff) | |
download | pleroma-e6d7f8d223b2604df38f8efa8baf09e2c607c487.tar.gz |
Credo fixes.
-rw-r--r-- | lib/pleroma/conversation.ex | 2 | ||||
-rw-r--r-- | lib/pleroma/web/activity_pub/activity_pub.ex | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/conversation.ex b/lib/pleroma/conversation.ex index 10c2403e8..0c6ca9f72 100644 --- a/lib/pleroma/conversation.ex +++ b/lib/pleroma/conversation.ex @@ -76,7 +76,7 @@ defmodule Pleroma.Conversation do @doc """ This is only meant to be run by a mix task. It creates conversations/participations for all direct messages in the database. """ - def bump_for_all_activities() do + def bump_for_all_activities do stream = Pleroma.Web.ActivityPub.ActivityPub.fetch_direct_messages_query() |> Repo.stream() diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index cd8495035..8137ac83b 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -1052,7 +1052,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do end) end - def fetch_direct_messages_query() do + def fetch_direct_messages_query do Activity |> restrict_type(%{"type" => "Create"}) |> restrict_visibility(%{visibility: "direct"}) |