X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FConversation%2FTimeline.php;h=725634eb0920ffd68e5ab27ba6962aa8979af1ca;hb=3f2b0b9422915529a0ea585aa4325b6d2f2f65cd;hp=d15fefe3e06aa111bea25b39ec9bf4852af9bfde;hpb=fce82deabcdd97be1d63989baa701ab44d412f01;p=friendica.git diff --git a/src/Module/Conversation/Timeline.php b/src/Module/Conversation/Timeline.php index d15fefe3e0..725634eb09 100644 --- a/src/Module/Conversation/Timeline.php +++ b/src/Module/Conversation/Timeline.php @@ -304,7 +304,7 @@ class Timeline extends BaseModule } elseif ($this->selectedTab == ChannelEntity::AUDIO) { $condition = ["`media-type` & ?", 4]; } elseif ($this->selectedTab == ChannelEntity::LANGUAGE) { - $condition = ["JSON_EXTRACT(JSON_KEYS(language), '$[0]') = ?", $this->l10n->convertCodeForLanguageDetection(User::getLanguageCode($uid))]; + $condition = ["JSON_EXTRACT(JSON_KEYS(language), '$[0]') = ?", User::getLanguageCode($uid)]; } elseif (is_numeric($this->selectedTab)) { $condition = $this->getUserChannelConditions($this->selectedTab, $this->session->getLocalUserId()); } @@ -421,7 +421,6 @@ class Timeline extends BaseModule { $conditions = []; $languages = $this->pConfig->get($uid, 'channel', 'languages', [User::getLanguageCode($uid)]); - $languages = $this->l10n->convertForLanguageDetection($languages); foreach ($languages as $language) { $conditions[] = "JSON_EXTRACT(JSON_KEYS(language), '$[0]') = ?"; $condition[] = $language;