Skip to content

Commit 32caa00

Browse files
authored
Follower: Fix missing ID warnings (#1954)
1 parent 0976a01 commit 32caa00

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

includes/table/class-followers.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ public function prepare_items() {
207207
foreach ( $followers as $follower ) {
208208
$actor = Actors::get_actor( $follower );
209209
$this->items[] = array(
210+
'id' => $follower->ID,
210211
'icon' => $actor->get_icon()['url'] ?? '',
211212
'post_title' => $actor->get_name(),
212213
'username' => $actor->get_preferred_username(),

includes/table/class-following.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public function prepare_items() {
218218
);
219219

220220
foreach ( $followings as $following ) {
221-
$actor = Actors::get_actor( $following->ID );
221+
$actor = Actors::get_actor( $following );
222222

223223
$this->items[] = array(
224224
'id' => $following->ID,

0 commit comments

Comments
 (0)