From e6c05c481afa91d9f9c77fb13444d5d956f9a387 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 30 Jul 2021 17:24:37 +0200 Subject: [PATCH] Fix variables names Signed-off-by: Thomas Citharel --- lib/federation/activity_pub/activity_pub.ex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/federation/activity_pub/activity_pub.ex b/lib/federation/activity_pub/activity_pub.ex index 4dadd4aaf..94a65a962 100644 --- a/lib/federation/activity_pub/activity_pub.ex +++ b/lib/federation/activity_pub/activity_pub.ex @@ -804,14 +804,14 @@ defmodule Mobilizon.Federation.ActivityPub do participant_as_data <- Convertible.model_to_as(participant), audience <- Audience.get_audience(participant), - update_data <- + accept_join_data <- make_accept_join_data( participant_as_data, Map.merge(Map.merge(audience, additional), %{ "id" => "#{Endpoint.url()}/accept/join/#{participant.id}" }) ) do - {:ok, participant, update_data} + {:ok, participant, accept_join_data} else err -> 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), audience <- Audience.get_audience(member), - update_data <- + accept_join_data <- make_accept_join_data( member_as_data, Map.merge(Map.merge(audience, additional), %{ "id" => "#{Endpoint.url()}/accept/join/#{member.id}" }) ) do - {:ok, member, update_data} + {:ok, member, accept_join_data} else err -> Logger.error("Something went wrong while creating an update activity")