From 1428ac2cb0d4ef9252e222bc111f32cd8e89abcd Mon Sep 17 00:00:00 2001 From: Diogo Cordeiro Date: Wed, 5 Aug 2020 17:27:30 +0100 Subject: [PATCH] [ActivityPub][NOTICE] Fix variable being wrongly reused --- plugins/ActivityPub/lib/models/Activitypub_notice.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/ActivityPub/lib/models/Activitypub_notice.php b/plugins/ActivityPub/lib/models/Activitypub_notice.php index a84cef4f7c..33b2e263a7 100644 --- a/plugins/ActivityPub/lib/models/Activitypub_notice.php +++ b/plugins/ActivityPub/lib/models/Activitypub_notice.php @@ -185,9 +185,9 @@ class Activitypub_notice $discovery = new Activitypub_explorer; foreach ($mentions as $mention) { try { - $actor_profile = $discovery->lookup($mention); - if (!empty($actor_profile)) { - $mentions_profiles[] = $actor_profile[0]; + $mentioned_profile = $discovery->lookup($mention); + if (!empty($mentioned_profile)) { + $mentions_profiles[] = $mentioned_profile[0]; } } catch (Exception $e) { // Invalid actor found, just let it go, it will eventually be handled by some other federation plugin like OStatus.