mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 11:19:19 +00:00
Conversation: Rename function to better express what it does.
This commit is contained in:
parent
a49c92f6ae
commit
e4a01d253e
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ defmodule Pleroma.Conversation do
|
||||||
Repo.get_by(__MODULE__, ap_id: ap_id)
|
Repo.get_by(__MODULE__, ap_id: ap_id)
|
||||||
end
|
end
|
||||||
|
|
||||||
def maybe_set_recipients(participation, activity) do
|
def maybe_create_recipientships(participation, activity) do
|
||||||
participation = Repo.preload(participation, :recipients)
|
participation = Repo.preload(participation, :recipients)
|
||||||
|
|
||||||
if participation.recipients |> Enum.empty?() do
|
if participation.recipients |> Enum.empty?() do
|
||||||
|
@ -70,7 +70,7 @@ defmodule Pleroma.Conversation do
|
||||||
{:ok, participation} =
|
{:ok, participation} =
|
||||||
Participation.create_for_user_and_conversation(user, conversation, opts)
|
Participation.create_for_user_and_conversation(user, conversation, opts)
|
||||||
|
|
||||||
maybe_set_recipients(participation, activity)
|
maybe_create_recipientships(participation, activity)
|
||||||
participation
|
participation
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue