mirror of
https://github.com/friendica/friendica
synced 2025-04-25 02:30:11 +00:00
New user account type "Channel Relay"
This commit is contained in:
parent
16b12e1545
commit
811a9f01bc
12 changed files with 434 additions and 261 deletions
|
@ -432,11 +432,15 @@ class Timeline extends BaseModule
|
|||
$conditions = [];
|
||||
$languages = $languages ?: User::getWantedLanguages($uid);
|
||||
foreach ($languages as $language) {
|
||||
$conditions[] = "JSON_EXTRACT(JSON_KEYS(language), '$[0]') = ?";
|
||||
$condition[] = $language;
|
||||
if ($language == 'un') {
|
||||
$conditions[] = "`language` IS NULL";
|
||||
} else {
|
||||
$conditions[] = "JSON_EXTRACT(JSON_KEYS(language), '$[0]') = ?";
|
||||
$condition[] = $language;
|
||||
}
|
||||
}
|
||||
if (!empty($conditions)) {
|
||||
$condition[0] .= " AND (`language` IS NULL OR " . implode(' OR ', $conditions) . ")";
|
||||
$condition[0] .= " AND (" . implode(' OR ', $conditions) . ")";
|
||||
}
|
||||
return $condition;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue