aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2013-12-23 18:41:41 +0000
committerThomas Willingham <founder@kakste.com>2013-12-23 18:41:41 +0000
commit50e39c330d9a73f69ddfdecfb5769a772b75167d (patch)
tree65eb7fcc216defbd644bf588c739af194937020c /include/conversation.php
parentcefa82b64532ffc3a485a66399ba8926b49b9d79 (diff)
downloadvolse-hubzilla-50e39c330d9a73f69ddfdecfb5769a772b75167d.tar.gz
volse-hubzilla-50e39c330d9a73f69ddfdecfb5769a772b75167d.tar.bz2
volse-hubzilla-50e39c330d9a73f69ddfdecfb5769a772b75167d.zip
Zidification of author links in webpages.
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php
index d602174b0..99252027d 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1296,15 +1296,18 @@ function prepare_page($item) {
$a = get_app();
$naked = ((get_pconfig($item['uid'],'system','nakedpage')) ? 1 : 0);
+ $observer = $a->get_observer();
+ $zid = ($observer['xchan_addr']);
+
if(array_key_exists('webpage',$a->layout) && array_key_exists('authored',$a->layout['webpage'])) {
if($a->layout['webpage']['authored'] === 'none')
$naked = 1;
// ... other possible options
}
-
return replace_macros(get_markup_template('page_display.tpl'),array(
'$author' => (($naked) ? '' : $item['author']['xchan_name']),
'$auth_url' => (($naked) ? '' : $item['author']['xchan_url']),
+ '$zid' => $zid,
'$date' => (($naked) ? '' : datetime_convert('UTC',date_default_timezone_get(),$item['created'],'Y-m-d H:i')),
'$title' => smilies(bbcode($item['title'])),
'$body' => prepare_body($item,true)