From: lain Date: Tue, 6 Aug 2019 13:06:19 +0000 (+0200) Subject: Conversation: Rename function to better express what it does. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=e4a01d253ef7ab09d028198e5e39b9aba357486c;p=akkoma Conversation: Rename function to better express what it does. --- diff --git a/lib/pleroma/conversation.ex b/lib/pleroma/conversation.ex index fb0dfedca..be5821ad7 100644 --- a/lib/pleroma/conversation.ex +++ b/lib/pleroma/conversation.ex @@ -40,7 +40,7 @@ defmodule Pleroma.Conversation do Repo.get_by(__MODULE__, ap_id: ap_id) end - def maybe_set_recipients(participation, activity) do + def maybe_create_recipientships(participation, activity) do participation = Repo.preload(participation, :recipients) if participation.recipients |> Enum.empty?() do @@ -70,7 +70,7 @@ defmodule Pleroma.Conversation do {:ok, participation} = Participation.create_for_user_and_conversation(user, conversation, opts) - maybe_set_recipients(participation, activity) + maybe_create_recipientships(participation, activity) participation end)