Do not filter out own messages

This commit is contained in:
Sandro Santilli 2015-09-09 19:41:38 +02:00
parent 2d6c2989f7
commit 931c39f44b

View file

@ -78,6 +78,11 @@ function langfilter_prepare_body(&$a,&$b) {
if(get_pconfig(local_user(),'langfilter','disable'))
return;
# Never filter own messages
# TODO: find a better way to extract this
$logged_user_profile = $a->config['system']['url'] . '/profile/' . $a->user['nickname'];
if ( $logged_user_profile == $b['item']['author-link'] ) return;
if(local_user()) {
$langs = get_pconfig(local_user(),'langfilter','languages');
}