aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-10-15 13:48:07 +0200
committerMax Kostikov <max@kostikov.co>2019-10-15 13:48:07 +0200
commit3561fd7c43f261b4846b526aaa15a54b1d1fda53 (patch)
tree5bda81040caa2492c55454b41ed11c1aad1bafc4 /include/channel.php
parentb4de492e0df562cac7955453161848f297d160b8 (diff)
parent66bfc0ec642faa0ac8798300483da95666b0318f (diff)
downloadvolse-hubzilla-3561fd7c43f261b4846b526aaa15a54b1d1fda53.tar.gz
volse-hubzilla-3561fd7c43f261b4846b526aaa15a54b1d1fda53.tar.bz2
volse-hubzilla-3561fd7c43f261b4846b526aaa15a54b1d1fda53.zip
Merge branch 'dev' into 'dev'
Sync dev See merge request kostikov/core!3
Diffstat (limited to 'include/channel.php')
-rw-r--r--include/channel.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/channel.php b/include/channel.php
index 5d583e4f1..29835eac6 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -2254,19 +2254,19 @@ function get_zcard($channel, $observer_hash = '', $args = array()) {
$cover_width = 425;
$size = 'hz_small';
$cover_size = PHOTO_RES_COVER_425;
- $pphoto = array('mimetype' => $channel['xchan_photo_mimetype'], 'width' => 80 , 'height' => 80, 'href' => $channel['xchan_photo_m']);
+ $pphoto = array('mimetype' => $channel['xchan_photo_mimetype'], 'width' => 80 , 'height' => 80, 'href' => $channel['xchan_photo_m'].'?rev='.strtotime($channel['xchan_photo_date']));
} elseif($maxwidth <= 900) {
$width = 900;
$cover_width = 850;
$size = 'hz_medium';
$cover_size = PHOTO_RES_COVER_850;
- $pphoto = array('mimetype' => $channel['xchan_photo_mimetype'], 'width' => 160 , 'height' => 160, 'href' => $channel['xchan_photo_l']);
+ $pphoto = array('mimetype' => $channel['xchan_photo_mimetype'], 'width' => 160 , 'height' => 160, 'href' => $channel['xchan_photo_l'].'?rev='.strtotime($channel['xchan_photo_date']));
} elseif($maxwidth <= 1200) {
$width = 1200;
$cover_width = 1200;
$size = 'hz_large';
$cover_size = PHOTO_RES_COVER_1200;
- $pphoto = array('mimetype' => $channel['xchan_photo_mimetype'], 'width' => 300 , 'height' => 300, 'href' => $channel['xchan_photo_l']);
+ $pphoto = array('mimetype' => $channel['xchan_photo_mimetype'], 'width' => 300 , 'height' => 300, 'href' => $channel['xchan_photo_l'].'?rev='.strtotime($channel['xchan_photo_date']));
}
// $scale = (float) $maxwidth / $width;