Skip to content

Commit dab2618

Browse files
committed
fix redirect issue
1 parent 0e710d0 commit dab2618

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

includes/collection/class-users.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public static function get_by_username( $username ) {
8080

8181
// check for application user.
8282
if ( 'application' === $username ) {
83-
return self::get_by_id( self::APPLICATION_USER_ID );
83+
return new Application();
8484
}
8585

8686
// check for 'activitypub_username' meta

includes/model/class-application.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,4 +197,8 @@ public function get_summary() {
197197
)
198198
);
199199
}
200+
201+
public function get_canonical_url() {
202+
return \home_url();
203+
}
200204
}

0 commit comments

Comments
 (0)