forked from friendica/friendica-addons
Fix errors in langfilter addon
This commit is contained in:
parent
3cf53a334d
commit
a53d5ae29b
1 changed files with 2 additions and 1 deletions
|
@ -7,7 +7,6 @@
|
||||||
* License: MIT
|
* License: MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Friendica\App;
|
|
||||||
use Friendica\Content\Text\BBCode;
|
use Friendica\Content\Text\BBCode;
|
||||||
use Friendica\Core\Hook;
|
use Friendica\Core\Hook;
|
||||||
use Friendica\Core\Renderer;
|
use Friendica\Core\Renderer;
|
||||||
|
@ -148,6 +147,8 @@ function langfilter_prepare_body_content_filter(&$hook_data)
|
||||||
|
|
||||||
$iso639 = new Matriphe\ISO639\ISO639;
|
$iso639 = new Matriphe\ISO639\ISO639;
|
||||||
|
|
||||||
|
$confidence = null;
|
||||||
|
|
||||||
// Extract the language of the post
|
// Extract the language of the post
|
||||||
if (!empty($hook_data['item']['language'])) {
|
if (!empty($hook_data['item']['language'])) {
|
||||||
$languages = json_decode($hook_data['item']['language'], true);
|
$languages = json_decode($hook_data['item']['language'], true);
|
||||||
|
|
Loading…
Reference in a new issue