mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-30 01:01:12 +00:00
Credo fixes.
This commit is contained in:
parent
6d19bb4eae
commit
e6d7f8d223
|
@ -76,7 +76,7 @@ defmodule Pleroma.Conversation do
|
||||||
@doc """
|
@doc """
|
||||||
This is only meant to be run by a mix task. It creates conversations/participations for all direct messages in the database.
|
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 =
|
stream =
|
||||||
Pleroma.Web.ActivityPub.ActivityPub.fetch_direct_messages_query()
|
Pleroma.Web.ActivityPub.ActivityPub.fetch_direct_messages_query()
|
||||||
|> Repo.stream()
|
|> Repo.stream()
|
||||||
|
|
|
@ -1052,7 +1052,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
def fetch_direct_messages_query() do
|
def fetch_direct_messages_query do
|
||||||
Activity
|
Activity
|
||||||
|> restrict_type(%{"type" => "Create"})
|
|> restrict_type(%{"type" => "Create"})
|
||||||
|> restrict_visibility(%{visibility: "direct"})
|
|> restrict_visibility(%{visibility: "direct"})
|
||||||
|
|
Loading…
Reference in a new issue