Skip to content

Commit e2908e8

Browse files
authored
Fix: Uncaught Error: Call to undefined method Activitypub\Transformer\Json::get_id() (#1330)
1 parent 759de2e commit e2908e8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

includes/transformer/class-activity-object.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ public function to_object() {
2828
return $activity_object;
2929
}
3030

31+
/**
32+
* Get the ID of the object.
33+
*
34+
* @return string The ID of the object.
35+
*/
36+
public function get_id() {
37+
return $this->item->get_id();
38+
}
39+
3140
/**
3241
* Get the attributed to.
3342
*

0 commit comments

Comments
 (0)