forked from GNUsocial/gnu-social
[ActivityPub][NOTICE] Fix variable being wrongly reused
This commit is contained in:
parent
efdc7d9ba0
commit
1428ac2cb0
@ -185,9 +185,9 @@ class Activitypub_notice
|
|||||||
$discovery = new Activitypub_explorer;
|
$discovery = new Activitypub_explorer;
|
||||||
foreach ($mentions as $mention) {
|
foreach ($mentions as $mention) {
|
||||||
try {
|
try {
|
||||||
$actor_profile = $discovery->lookup($mention);
|
$mentioned_profile = $discovery->lookup($mention);
|
||||||
if (!empty($actor_profile)) {
|
if (!empty($mentioned_profile)) {
|
||||||
$mentions_profiles[] = $actor_profile[0];
|
$mentions_profiles[] = $mentioned_profile[0];
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
// Invalid actor found, just let it go, it will eventually be handled by some other federation plugin like OStatus.
|
// Invalid actor found, just let it go, it will eventually be handled by some other federation plugin like OStatus.
|
||||||
|
Loading…
Reference in New Issue
Block a user