reflect repeats in notifications, use force flag for import_xchan_photo() in cron

This commit is contained in:
Mario Vavti
2019-07-22 19:11:52 +02:00
parent ad58697521
commit 81ecea29c8
3 changed files with 14 additions and 7 deletions

View File

@@ -188,7 +188,7 @@ class Cron {
if($r) {
require_once('include/photo/photo_driver.php');
foreach($r as $rr) {
$photos = import_xchan_photo($rr['xchan_photo_l'],$rr['xchan_hash']);
$photos = import_xchan_photo($rr['xchan_photo_l'], $rr['xchan_hash'], false, true);
$x = q("update xchan set xchan_photo_l = '%s', xchan_photo_m = '%s', xchan_photo_s = '%s', xchan_photo_mimetype = '%s'
where xchan_hash = '%s'",
dbesc($photos[0]),