Merge branch 'dev' of codeberg.org:streams/streams into dev

This commit is contained in:
Mike Macgirvin 2023-04-18 07:32:10 +10:00
commit bf55ca5195
4 changed files with 7 additions and 3 deletions

View file

@ -4301,7 +4301,7 @@ class Activity
return false;
}
// check for the existence of existing media link in body
// check for the existence of existing share in body
public static function share_not_in_body($body)
{

View file

@ -139,6 +139,9 @@ class Embedphotos extends Controller
}
$r = attach_by_hash($resource,get_observer_hash());
$url = z_root() . '/cloud/' . $channel['channel_address'] . '/' . $r['data']['display_path'];
if (str_starts_with($r['data']['filetype'], 'video')) {
for ($n = 0; $n < 15; $n++) {
$thumb = Linkinfo::get_video_poster($url);

View file

@ -1144,7 +1144,8 @@ class Item extends Controller
else {
$r = attach_by_hash_nodata($hash, $observer['xchan_hash'], $rev);
if ($r['success']) {
$href = z_root() . '/attach/' . $r['data']['hash'];
$ch = Channel::from_id($r['data']['uid']);
$href = z_root() . (($ch) ? '/cloud/' . $ch['channel_address'] . '/' . $r['data']['display_path'] : '/attach/' . $r['data']['hash']);
if ($r['data']['is_photo']) {
$href = z_root() . '/photo/' . $r['data']['hash'] . '-1.' . photoExtensionFromType($r['data']['filetype']);
if ($token) {

View file

@ -1,2 +1,2 @@
<?php
define ('STD_VERSION', '23.04.14');
define ('STD_VERSION', '23.04.18');