fall back to preferred username

This commit is contained in:
Matthias Pfefferle 2023-07-28 15:18:48 +02:00
parent 070c9cae85
commit a89a106f21

View file

@ -214,6 +214,8 @@ class Follower extends Actor {
public function get_name() {
if ( $this->name ) {
return $this->name;
} elseif ( $this->preferred_username ) {
return $this->preferred_username;
}
return $this->extract_name_from_uri();