mirror of
https://github.com/friendica/friendica
synced 2024-11-18 08:23:53 +00:00
Execute the language detection all the time
This commit is contained in:
parent
43fa22470c
commit
5dedf5e500
1 changed files with 3 additions and 3 deletions
|
@ -2069,12 +2069,12 @@ class Item
|
||||||
$transmitted[$language] = 0;
|
$transmitted[$language] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$content = trim(($item['title'] ?? '') . ' ' . ($item['content-warning'] ?? '') . ' ' . ($item['body'] ?? ''));
|
if (!in_array($item['gravity'], [self::GRAVITY_PARENT, self::GRAVITY_COMMENT])) {
|
||||||
|
|
||||||
if (!in_array($item['gravity'], [self::GRAVITY_PARENT, self::GRAVITY_COMMENT]) || empty($content)) {
|
|
||||||
return !empty($transmitted) ? json_encode($transmitted) : null;
|
return !empty($transmitted) ? json_encode($transmitted) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$content = trim(($item['title'] ?? '') . ' ' . ($item['content-warning'] ?? '') . ' ' . ($item['body'] ?? ''));
|
||||||
|
|
||||||
$languages = self::getLanguageArray($content, 3, $item['uri-id'], $item['author-id'], $transmitted);
|
$languages = self::getLanguageArray($content, 3, $item['uri-id'], $item['author-id'], $transmitted);
|
||||||
|
|
||||||
if (!empty($transmitted)) {
|
if (!empty($transmitted)) {
|
||||||
|
|
Loading…
Reference in a new issue