fix warnings
This commit is contained in:
parent
8a0e02b39f
commit
9af54707b9
1 changed files with 9 additions and 7 deletions
|
@ -342,6 +342,7 @@ function reply_recipients( $object_id, $post = null ) {
|
||||||
$recipients[] = \ActivityPub\url_to_webfinger( $ap_object['actor'] ); // Reply to Object actor!
|
$recipients[] = \ActivityPub\url_to_webfinger( $ap_object['actor'] ); // Reply to Object actor!
|
||||||
|
|
||||||
if ( ! empty( $ap_object['object']['tag'] ) ) { // Reply to other tagged users.
|
if ( ! empty( $ap_object['object']['tag'] ) ) { // Reply to other tagged users.
|
||||||
|
if ( isset( $ap_object['user_id'] ) ) {
|
||||||
$author_post_url = \get_author_posts_url( $ap_object['user_id'] );// ignore self tag.
|
$author_post_url = \get_author_posts_url( $ap_object['user_id'] );// ignore self tag.
|
||||||
foreach ( $ap_object['object']['tag'] as $tag ) { // Other tagged users
|
foreach ( $ap_object['object']['tag'] as $tag ) { // Other tagged users
|
||||||
if ( $author_post_url === $tag['href'] ) {
|
if ( $author_post_url === $tag['href'] ) {
|
||||||
|
@ -352,6 +353,7 @@ function reply_recipients( $object_id, $post = null ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return implode( ' ', $recipients );
|
return implode( ' ', $recipients );
|
||||||
} else {
|
} else {
|
||||||
// Replying to self with others.
|
// Replying to self with others.
|
||||||
|
|
Loading…
Reference in a new issue