| @@ -64,15 +64,11 @@ | ||
| 64 | 64 | |
| 65 | 65 | // Get actor webfinger for the card header. |
| 66 | 66 | $actor = Actors::get_by_id( $user_id ); |
| 67 | 67 | |
| 68 | -if ( \is_wp_error( $actor ) ) { | |
| 69 | - // Fall back to direct model instantiation for blog/application actors. | |
| 70 | - if ( Actors::BLOG_USER_ID === $user_id ) { | |
| 71 | - $actor = new \Activitypub\Model\Blog(); | |
| 72 | - } elseif ( Actors::APPLICATION_USER_ID === $user_id ) { | |
| 73 | - $actor = new \Activitypub\Model\Application(); | |
| 74 | - } | |
| 68 | +if ( \is_wp_error( $actor ) && Actors::BLOG_USER_ID === $user_id ) { | |
| 69 | + // Fall back to direct model instantiation for the blog actor. | |
| 70 | + $actor = new \Activitypub\Model\Blog(); | |
| 75 | 71 | } |
| 76 | 72 | |
| 77 | 73 | $actor_webfinger = ! \is_wp_error( $actor ) ? $actor->get_webfinger() : ''; |
| 78 | 74 | |