PluginProbe
ActivityPub / 9.2.1
ActivityPub v9.2.1
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
← All changes | build/stats/render.php +3 -7 8.2.19.2.1 View file →
@@ -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