Skip to content

Commit d4b1edc

Browse files
committed
fix update and delete dispatcher
1 parent bc8cb19 commit d4b1edc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

includes/class-activity-dispatcher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public static function send_update_activity( $activitypub_post ) {
6767
$user_id = $activitypub_post->get_post_author();
6868

6969
$activitypub_activity = new \Activitypub\Model\Activity( 'Update', \Activitypub\Model\Activity::TYPE_FULL );
70-
$activitypub_activity->from_post( $activitypub_post->to_array() );
70+
$activitypub_activity->from_post( $activitypub_post );
7171

7272
foreach ( \Activitypub\get_follower_inboxes( $user_id ) as $inbox => $to ) {
7373
$activitypub_activity->set_to( $to );
@@ -87,7 +87,7 @@ public static function send_delete_activity( $activitypub_post ) {
8787
$user_id = $activitypub_post->get_post_author();
8888

8989
$activitypub_activity = new \Activitypub\Model\Activity( 'Delete', \Activitypub\Model\Activity::TYPE_FULL );
90-
$activitypub_activity->from_post( $activitypub_post->to_array() );
90+
$activitypub_activity->from_post( $activitypub_post );
9191

9292
foreach ( \Activitypub\get_follower_inboxes( $user_id ) as $inbox => $to ) {
9393
$activitypub_activity->set_to( $to );

0 commit comments

Comments
 (0)