| @@ -7,9 +7,9 @@ | ||
| 7 | 7 | |
| 8 | 8 | namespace Activitypub\Handler; |
| 9 | 9 | |
| 10 | 10 | use Activitypub\Collection\Interactions; |
| 11 | -use Activitypub\Collection\Remote_Posts; | |
| 11 | +use Activitypub\Collection\Posts; | |
| 12 | 12 | use Activitypub\Tombstone; |
| 13 | 13 | |
| 14 | 14 | use function Activitypub\get_activity_visibility; |
| 15 | 15 | use function Activitypub\is_activity_reply; |
| @@ -109,9 +109,9 @@ | ||
| 109 | 109 | if ( ! \get_option( 'activitypub_create_posts', false ) ) { |
| 110 | 110 | return false; |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | - $existing_post = Remote_Posts::get_by_guid( $activity['object']['id'] ); | |
| 113 | + $existing_post = Posts::get_by_guid( $activity['object']['id'] ); | |
| 114 | 114 | |
| 115 | 115 | // If post exists, call update action. |
| 116 | 116 | if ( $existing_post instanceof \WP_Post ) { |
| 117 | 117 | Update::handle_update( $activity, (array) $user_ids, $activity_object ); |
| @@ -118,9 +118,9 @@ | ||
| 118 | 118 | |
| 119 | 119 | return false; |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | - return Remote_Posts::add( $activity, $user_ids ); | |
| 122 | + return Posts::add( $activity, $user_ids ); | |
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | /** |
| 126 | 126 | * Validate the object. |