Commit ed090211 authored by Max Kostikov's avatar Max Kostikov
Browse files

Merge branch 'dev' into 'dev'

Remove suffix from the cached photo URL

See merge request !409
parents 704f3976 2d35a30a
......@@ -180,7 +180,7 @@ function photocache_hash($str, $alg = 'sha256') {
if(! $ph->save($r, true))
logger('can not create new link in database', LOGGER_DEBUG);
}
$s['body'] = str_replace($match[3], z_root() . '/photo/' . $resid . '-' . ($cache['item']['imgscale'] ? $cache['item']['imgscale'] : 0), $s['body']);
$s['body'] = str_replace($match[3], z_root() . '/photo/' . $resid, $s['body']);
logger('local resource id ' . $resid . '; xchan: ' . $hash . '; url: ' . $match[3]);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment