Skip to content

Commit 88ab980

Browse files
committed
fix deprecated class
1 parent 9f09bfb commit 88ab980

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

includes/model/class-post.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22
namespace Activitypub\Model;
33

4+
use Activitypub\Collection\Users;
45
use Activitypub\Transformer\Post as Post_Transformer;
56

67
/**
@@ -61,7 +62,7 @@ public function to_array() {
6162
* @return string The URL of the Actor.
6263
*/
6364
public function get_actor() {
64-
$user = User_Factory::get_by_id( $this->get_user_id() );
65+
$user = Users::get_by_id( $this->get_user_id() );
6566

6667
return $user->get_url();
6768
}

0 commit comments

Comments
 (0)