aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-11-20 19:22:06 +0000
committerMario <mario@mariovavti.com>2023-11-20 19:22:06 +0000
commit166c45f97fd8834770b51e6b93e5f589fe9b2f19 (patch)
treef41eda73fb295fc6edb1af18d2c37edb49e80d82 /include
parentaf58364fefd52b03c32ac9594f87f6bbaed8e002 (diff)
downloadvolse-hubzilla-166c45f97fd8834770b51e6b93e5f589fe9b2f19.tar.gz
volse-hubzilla-166c45f97fd8834770b51e6b93e5f589fe9b2f19.tar.bz2
volse-hubzilla-166c45f97fd8834770b51e6b93e5f589fe9b2f19.zip
do not provide channel info for templates
Diffstat (limited to 'include')
-rw-r--r--include/channel.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/channel.php b/include/channel.php
index 50cd77d6c..dc164eba1 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -2397,8 +2397,12 @@ function get_zcard($channel, $observer_hash = '', $args = array()) {
// $scale = (float) $maxwidth / $width;
// $translate = intval(($scale / 1.0) * 100);
- $channel['channel_addr'] = channel_reddress($channel);
- $zcard = array('chan' => $channel);
+ $zcard = [
+ 'chan' => [
+ 'xchan_name' => $channel['xchan_name'],
+ 'channel_addr' => channel_reddress($channel)
+ ]
+ ];
$r = q("select height, width, resource_id, imgscale, mimetype from photo where uid = %d and imgscale = %d and photo_usage = %d",
intval($channel['channel_id']),