mirror of
https://github.com/friendica/friendica
synced 2024-11-10 02:22:55 +00:00
Take language from quoted post
This commit is contained in:
parent
5dedf5e500
commit
7a680dd9b7
1 changed files with 7 additions and 0 deletions
|
@ -2075,6 +2075,13 @@ class Item
|
|||
|
||||
$content = trim(($item['title'] ?? '') . ' ' . ($item['content-warning'] ?? '') . ' ' . ($item['body'] ?? ''));
|
||||
|
||||
if (empty($content) && !empty($item['quote-uri-id'])) {
|
||||
$quoted = Post::selectFirstPost(['language'], ['uri-id' => $item['quote-uri-id']]);
|
||||
if (!empty($quoted['language'])) {
|
||||
return $quoted['language'];
|
||||
}
|
||||
}
|
||||
|
||||
$languages = self::getLanguageArray($content, 3, $item['uri-id'], $item['author-id'], $transmitted);
|
||||
|
||||
if (!empty($transmitted)) {
|
||||
|
|
Loading…
Reference in a new issue