From a89a106f21e5049a3eea2aba13a3db11b501da78 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Fri, 28 Jul 2023 15:18:48 +0200 Subject: [PATCH] fall back to preferred username --- includes/model/class-follower.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/model/class-follower.php b/includes/model/class-follower.php index dc48079..0993170 100644 --- a/includes/model/class-follower.php +++ b/includes/model/class-follower.php @@ -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();