- if (common_logged_in()) {
- $current_user = common_current_user();
- if ($this->user->id === $current_user->id) {
- // TRANS: Subscriber list text when the logged in user has no subscribers.
- $message = _('You have no subscribers. Try subscribing to people you know and they might return the favor.');
- } else {
- // TRANS: Subscriber list text when looking at the subscribers for a of a user other
- // TRANS: than the logged in user that has no subscribers. %s is the user nickname.
- $message = sprintf(_('%s has no subscribers. Want to be the first?'), $this->user->nickname);
- }
- }
- else {
+ if ($this->scoped instanceof Profile && $this->target->id === $this->scoped->id) {
+ // TRANS: Subscriber list text when the logged in user has no subscribers.
+ $message = _('You have no subscribers. Try subscribing to people you know and they might return the favor.');
+ } elseif ($this->scoped instanceof Profile) {
+ // TRANS: Subscriber list text when looking at the subscribers for a of a user other
+ // TRANS: than the logged in user that has no subscribers. %s is the user nickname.
+ $message = sprintf(_('%s has no subscribers. Want to be the first?'), $this->target->getNickname());
+ } else {