fall back to preferred username
This commit is contained in:
parent
070c9cae85
commit
a89a106f21
1 changed files with 2 additions and 0 deletions
|
@ -214,6 +214,8 @@ class Follower extends Actor {
|
||||||
public function get_name() {
|
public function get_name() {
|
||||||
if ( $this->name ) {
|
if ( $this->name ) {
|
||||||
return $this->name;
|
return $this->name;
|
||||||
|
} elseif ( $this->preferred_username ) {
|
||||||
|
return $this->preferred_username;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->extract_name_from_uri();
|
return $this->extract_name_from_uri();
|
||||||
|
|
Loading…
Reference in a new issue