Langfilter: Use two letter code for the language / Bluesky: Remove callstack

This commit is contained in:
Michael 2023-10-18 20:16:59 +00:00 committed by Hypolite Petovan
parent 74c56c32b0
commit 6948a15f1c
2 changed files with 3 additions and 4 deletions

View file

@ -163,7 +163,7 @@ function langfilter_prepare_body_content_filter(&$hook_data)
return;
}
$lang = $iso639->languageByCode1($iso2);
$lang = $iso639->languageByCode1(substr($iso2, 0, 2));
} else {
$opts = $hook_data['item']['postopts'];
if (!$opts) {