fix default username
This commit is contained in:
parent
e12cfa44ac
commit
799280a808
1 changed files with 3 additions and 3 deletions
|
@ -211,7 +211,7 @@ class Follower extends Actor {
|
||||||
* @return string The name.
|
* @return string The name.
|
||||||
*/
|
*/
|
||||||
public function get_name() {
|
public function get_name() {
|
||||||
if ( isset( $this->name ) ) {
|
if ( $this->name ) {
|
||||||
return $this->name;
|
return $this->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -226,8 +226,8 @@ class Follower extends Actor {
|
||||||
* @return string The preferred Username.
|
* @return string The preferred Username.
|
||||||
*/
|
*/
|
||||||
public function get_preferred_username() {
|
public function get_preferred_username() {
|
||||||
if ( isset( $this->name ) ) {
|
if ( $this->preferred_username ) {
|
||||||
return $this->name;
|
return $this->preferred_username;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->extract_name_from_uri();
|
return $this->extract_name_from_uri();
|
||||||
|
|
Loading…
Reference in a new issue