From 3b697957af902cbe28aecf70dcf0dfad328a6db1 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 5 Sep 2013 16:26:40 -0700 Subject: update photo timestamp on site rename --- boot.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index de54ea986..9bf586caf 100755 --- a/boot.php +++ b/boot.php @@ -1343,7 +1343,7 @@ function fix_system_urls($oldurl,$newurl) { // paths aren't going to work. You have to be at the (sub)domain root // . (($parsed['path']) ? $parsed['path'] : ''); - $x = q("update xchan set xchan_addr = '%s', xchan_url = '%s', xchan_connurl = '%s', xchan_follow = '%s', xchan_connpage = '%s', xchan_photo_l = '%s', xchan_photo_m = '%s', xchan_photo_s = '%s' where xchan_hash = '%s' limit 1", + $x = q("update xchan set xchan_addr = '%s', xchan_url = '%s', xchan_connurl = '%s', xchan_follow = '%s', xchan_connpage = '%s', xchan_photo_l = '%s', xchan_photo_m = '%s', xchan_photo_s = '%s', xchan_photo_date = '%s' where xchan_hash = '%s' limit 1", dbesc($channel . '@' . $rhs), dbesc(str_replace($oldurl,$newurl,$rr['xchan_url'])), dbesc(str_replace($oldurl,$newurl,$rr['xchan_connurl'])), @@ -1352,6 +1352,7 @@ function fix_system_urls($oldurl,$newurl) { dbesc(str_replace($oldurl,$newurl,$rr['xchan_photo_l'])), dbesc(str_replace($oldurl,$newurl,$rr['xchan_photo_m'])), dbesc(str_replace($oldurl,$newurl,$rr['xchan_photo_s'])), + dbesc(datetime_convert()), dbesc($rr['xchan_hash']) ); -- cgit v1.2.3