try new id urls

This commit is contained in:
Matthias Pfefferle 2023-05-24 17:40:48 +02:00
parent 03f2c24892
commit a1791b963c
2 changed files with 6 additions and 2 deletions

View file

@ -36,4 +36,8 @@ class Application_User extends Blog_User {
public function get_url() {
return '';
}
public function get_name() {
return \esc_html( \get_bloginfo( 'activitypub_application_identifier', 'application' ) );
}
}

View file

@ -52,11 +52,11 @@ class Blog_User extends User {
* @return string The User-Url.
*/
public function get_url() {
return '';
return \esc_url( \trailingslashit( get_home_url() ) . '@' . $this->get_username() );
}
public function get_username() {
return '';
return \esc_html( \get_bloginfo( 'activitypub_blog_identifier', 'feed' ) );
}
public function get_avatar() {