Fix variables names
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
042d09b8cb
commit
e6c05c481a
|
@ -804,14 +804,14 @@ defmodule Mobilizon.Federation.ActivityPub do
|
||||||
participant_as_data <- Convertible.model_to_as(participant),
|
participant_as_data <- Convertible.model_to_as(participant),
|
||||||
audience <-
|
audience <-
|
||||||
Audience.get_audience(participant),
|
Audience.get_audience(participant),
|
||||||
update_data <-
|
accept_join_data <-
|
||||||
make_accept_join_data(
|
make_accept_join_data(
|
||||||
participant_as_data,
|
participant_as_data,
|
||||||
Map.merge(Map.merge(audience, additional), %{
|
Map.merge(Map.merge(audience, additional), %{
|
||||||
"id" => "#{Endpoint.url()}/accept/join/#{participant.id}"
|
"id" => "#{Endpoint.url()}/accept/join/#{participant.id}"
|
||||||
})
|
})
|
||||||
) do
|
) do
|
||||||
{:ok, participant, update_data}
|
{:ok, participant, accept_join_data}
|
||||||
else
|
else
|
||||||
err ->
|
err ->
|
||||||
Logger.error("Something went wrong while creating an update activity")
|
Logger.error("Something went wrong while creating an update activity")
|
||||||
|
@ -838,14 +838,14 @@ defmodule Mobilizon.Federation.ActivityPub do
|
||||||
member_as_data <- Convertible.model_to_as(member),
|
member_as_data <- Convertible.model_to_as(member),
|
||||||
audience <-
|
audience <-
|
||||||
Audience.get_audience(member),
|
Audience.get_audience(member),
|
||||||
update_data <-
|
accept_join_data <-
|
||||||
make_accept_join_data(
|
make_accept_join_data(
|
||||||
member_as_data,
|
member_as_data,
|
||||||
Map.merge(Map.merge(audience, additional), %{
|
Map.merge(Map.merge(audience, additional), %{
|
||||||
"id" => "#{Endpoint.url()}/accept/join/#{member.id}"
|
"id" => "#{Endpoint.url()}/accept/join/#{member.id}"
|
||||||
})
|
})
|
||||||
) do
|
) do
|
||||||
{:ok, member, update_data}
|
{:ok, member, accept_join_data}
|
||||||
else
|
else
|
||||||
err ->
|
err ->
|
||||||
Logger.error("Something went wrong while creating an update activity")
|
Logger.error("Something went wrong while creating an update activity")
|
||||||
|
|
Loading…
Reference in a new issue