mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
sort out anon profile display and write permissions
This commit is contained in:
parent
ac48009180
commit
4b4d680dc4
5 changed files with 26 additions and 232 deletions
|
@ -149,12 +149,15 @@ function profile_content(&$a) {
|
|||
|
||||
if(count($r)) {
|
||||
foreach($r as $rr) {
|
||||
$comment = replace_macros($template,array(
|
||||
'$id' => $rr['item_id'],
|
||||
'$profile_uid' => $a->profile['profile_uid']
|
||||
));
|
||||
|
||||
|
||||
if(can_write_wall($a,$a->profile['profile_uid'])) {
|
||||
$comment = replace_macros($template,array(
|
||||
'$id' => $rr['item_id'],
|
||||
'$profile_uid' => $a->profile['profile_uid']
|
||||
));
|
||||
}
|
||||
else {
|
||||
$comment = '';
|
||||
}
|
||||
|
||||
$o .= item_display($a,$rr,$tpl,$comment);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue