File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments