// Never filter own messages
// TODO: find a better way to extract this
- $logged_user_profile = $a->get_baseurl() . '/profile/' . $a->user['nickname'];
+ $logged_user_profile = $a->getBaseURL() . '/profile/' . $a->user['nickname'];
if ($logged_user_profile == $hook_data['item']['author-link']) {
return;
}
break;
}
+ if (empty($iso2)) {
+ return;
+ }
+
$lang = Text_LanguageDetect_ISO639::code2ToName($iso2);
} else {
$opts = $hook_data['item']['postopts'];