From 931c39f44bcdc9675b582e793457fe13643da870 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 9 Sep 2015 19:41:38 +0200 Subject: [PATCH 1/1] Do not filter out own messages --- langfilter/langfilter.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/langfilter/langfilter.php b/langfilter/langfilter.php index e7526299..bbdc47fe 100644 --- a/langfilter/langfilter.php +++ b/langfilter/langfilter.php @@ -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'); } -- 2.39.2