Fix language code for users
This commit is contained in:
parent
d4ea76a6ae
commit
a65809c5bd
|
@ -232,10 +232,15 @@ class ResultItem
|
||||||
$this->id = $this->notice->id;
|
$this->id = $this->notice->id;
|
||||||
$this->from_user_id = $this->profile->id;
|
$this->from_user_id = $this->profile->id;
|
||||||
|
|
||||||
$user = User::staticGet('id', $this->profile->id);
|
$user = $this->profile->getUser();
|
||||||
|
|
||||||
$this->iso_language_code = $user->language;
|
|
||||||
|
|
||||||
|
if (empty($user)) {
|
||||||
|
// Gonna have to do till we can detect it
|
||||||
|
$this->iso_language_code = common_config('site', 'language');
|
||||||
|
} else {
|
||||||
|
$this->iso_language_code = $user->language;
|
||||||
|
}
|
||||||
|
|
||||||
$this->source = $this->getSourceLink($this->notice->source);
|
$this->source = $this->getSourceLink($this->notice->source);
|
||||||
|
|
||||||
$avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE);
|
$avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user