]> git.mxchange.org Git - friendica-addons.git/commitdiff
Do not filter out own messages
authorSandro Santilli <strk@keybit.net>
Wed, 9 Sep 2015 17:41:38 +0000 (19:41 +0200)
committerSandro Santilli <strk@keybit.net>
Wed, 9 Sep 2015 17:41:38 +0000 (19:41 +0200)
langfilter/langfilter.php

index e75262999994191fee0795166e6f14fff3d387d5..bbdc47fe2a9aae1bca18350692a2e4a532738128 100644 (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');
        }