Skip to content
Snippets Groups Projects
Commit 681a59b2 authored by Gina Haeussge's avatar Gina Haeussge
Browse files

FS#1884: respect $conf['showuseras'] in feeds

parent 69266de5
No related branches found
No related tags found
No related merge requests found
...@@ -253,7 +253,18 @@ function rss_buildItems(&$rss,&$data,$opt){ ...@@ -253,7 +253,18 @@ function rss_buildItems(&$rss,&$data,$opt){
$item->author = ''; $item->author = '';
if($user && $conf['useacl'] && $auth){ if($user && $conf['useacl'] && $auth){
$userInfo = $auth->getUserData($user); $userInfo = $auth->getUserData($user);
$item->author = $userInfo['name']; if ($userInfo){
switch ($conf['showuseras']){
case 'username':
$item->author = $userInfo['name'];
break;
default:
$item->author = $user;
break;
}
} else {
$item->author = $user;
}
if($userInfo && !$opt['guardmail']){ if($userInfo && !$opt['guardmail']){
$item->authorEmail = $userInfo['mail']; $item->authorEmail = $userInfo['mail'];
}else{ }else{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment