This commit is contained in:
André Menrath 2025-01-04 09:36:49 +01:00
parent b4a216fd78
commit a0fa94847e

View file

@ -31,7 +31,7 @@ class Join {
); );
\add_action( \add_action(
'activitypub_event_bridge_ignore_join', 'event_bridge_for_activitypub_ignore_join',
array( self::class, 'send_ignore_response' ), array( self::class, 'send_ignore_response' ),
10, 10,
4 4
@ -81,7 +81,7 @@ class Join {
// Until then just send an ignore. // Until then just send an ignore.
do_action( do_action(
'activitypub_event_bridge_ignore_join', 'event_bridge_for_activitypub_ignore_join',
$transformer->get_actor_object()->get_id(), $transformer->get_actor_object()->get_id(),
$activity, $activity,
); );
@ -90,9 +90,9 @@ class Join {
/** /**
* Send "Ignore" response. * Send "Ignore" response.
* *
* @param string $actor The actors ActivityPub ID which sends the response. * @param string $actor The actors ActivityPub ID which sends the response.
* @param array $activity_object The Activity object that gets ignored. * @param array $activity_object The Activity object that gets ignored.
* @param string $to The target actor. * @param string $to The target actor.
*/ */
public static function send_ignore_response( $actor, $activity_object, $to = null ) { public static function send_ignore_response( $actor, $activity_object, $to = null ) {
if ( ! $to && array_key_exists( 'actor', $activity_object ) ) { if ( ! $to && array_key_exists( 'actor', $activity_object ) ) {