aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-11-20 20:21:03 +0000
committerMario <mario@mariovavti.com>2023-11-20 20:21:03 +0000
commitfebebc8d3da6a77d8c71dc31c364b7b1a6cf0c84 (patch)
tree82e28ad613931d3c26a36d1d2294b3bbef197c3b /include/channel.php
parent166c45f97fd8834770b51e6b93e5f589fe9b2f19 (diff)
downloadvolse-hubzilla-febebc8d3da6a77d8c71dc31c364b7b1a6cf0c84.tar.gz
volse-hubzilla-febebc8d3da6a77d8c71dc31c364b7b1a6cf0c84.tar.bz2
volse-hubzilla-febebc8d3da6a77d8c71dc31c364b7b1a6cf0c84.zip
more do not provide channel info for templates and code cleanup
Diffstat (limited to 'include/channel.php')
-rw-r--r--include/channel.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/include/channel.php b/include/channel.php
index dc164eba1..640274348 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -2397,11 +2397,10 @@ function get_zcard($channel, $observer_hash = '', $args = array()) {
// $scale = (float) $maxwidth / $width;
// $translate = intval(($scale / 1.0) * 100);
- $zcard = [
- 'chan' => [
- 'xchan_name' => $channel['xchan_name'],
- 'channel_addr' => channel_reddress($channel)
- ]
+ $zcard['chan'] = [
+ 'xchan_name' => $channel['xchan_name'],
+ 'xchan_url' => $channel['xchan_url'],
+ 'xchan_addr' => $channel['xchan_addr']
];
$r = q("select height, width, resource_id, imgscale, mimetype from photo where uid = %d and imgscale = %d and photo_usage = %d",
@@ -2474,8 +2473,11 @@ function get_zcard_embed($channel, $observer_hash = '', $args = array()) {
$pphoto = array('mimetype' => $channel['xchan_photo_mimetype'], 'width' => 300 , 'height' => 300, 'href' => $channel['xchan_photo_l']);
}
- $channel['channel_addr'] = channel_reddress($channel);
- $zcard = array('chan' => $channel);
+ $zcard['chan'] = [
+ 'xchan_name' => $channel['xchan_name'],
+ 'xchan_url' => $channel['xchan_url'],
+ 'xchan_addr' => $channel['xchan_addr']
+ ];
$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']),