Replaced direct calls to App->user
This commit is contained in:
parent
2d4ecd5ccf
commit
e823a1bd05
10 changed files with 12 additions and 12 deletions
|
@ -105,7 +105,7 @@ function langfilter_prepare_body_content_filter(App $a, &$hook_data)
|
|||
|
||||
// Never filter own messages
|
||||
// TODO: find a better way to extract this
|
||||
$logged_user_profile = DI::baseUrl()->get() . '/profile/' . $a->user['nickname'];
|
||||
$logged_user_profile = DI::baseUrl()->get() . '/profile/' . $a->getNickname();
|
||||
if ($logged_user_profile == $hook_data['item']['author-link']) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue