mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 14:23:47 +00:00
Merge pull request #299 from strk/lang-filter-ownposts
Do not filter out own messages
This commit is contained in:
commit
5b2c4dfed9
1 changed files with 5 additions and 0 deletions
|
@ -78,6 +78,11 @@ function langfilter_prepare_body(&$a,&$b) {
|
||||||
if(get_pconfig(local_user(),'langfilter','disable'))
|
if(get_pconfig(local_user(),'langfilter','disable'))
|
||||||
return;
|
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()) {
|
if(local_user()) {
|
||||||
$langs = get_pconfig(local_user(),'langfilter','languages');
|
$langs = get_pconfig(local_user(),'langfilter','languages');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue