mirror of
https://github.com/friendica/friendica
synced 2025-04-28 07:44:23 +02:00
Check for user defined channel matches before storing them
This commit is contained in:
parent
e2891a660a
commit
43f9be367f
13 changed files with 236 additions and 42 deletions
|
@ -193,12 +193,7 @@ class Relay
|
|||
}
|
||||
|
||||
if (!empty($languages) || !empty($detected)) {
|
||||
$cachekey = 'relay:isWantedLanguage';
|
||||
$user_languages = DI::cache()->get($cachekey);
|
||||
if (is_null($user_languages)) {
|
||||
$user_languages = User::getLanguages();
|
||||
DI::cache()->set($cachekey, $user_languages);
|
||||
}
|
||||
$user_languages = User::getLanguages();
|
||||
|
||||
foreach ($detected as $language) {
|
||||
if (in_array($language, $user_languages)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue