aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-04-10 16:56:08 -0700
committerredmatrix <git@macgirvin.com>2016-04-10 16:56:08 -0700
commitabfbe9c9375c7505e0422b8adc1d9d5426d7df1a (patch)
tree5fdc9b9b7edbc4f73fd36cfde9d905e335089cb9 /boot.php
parentc0bdcfedeb8c5b8753587ac77d5b90d48698ec66 (diff)
downloadvolse-hubzilla-abfbe9c9375c7505e0422b8adc1d9d5426d7df1a.tar.gz
volse-hubzilla-abfbe9c9375c7505e0422b8adc1d9d5426d7df1a.tar.bz2
volse-hubzilla-abfbe9c9375c7505e0422b8adc1d9d5426d7df1a.zip
a few issues: block public not blocking mod_cal, typo in sql for one clone file sync operation, fix_system_urls not catching cached contact photos, extend sessionhandler expiration when remember_me is enabled as the stored session is expiring long before the browser session.
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index 386a419dc..b6febde4e 100755
--- a/boot.php
+++ b/boot.php
@@ -1542,6 +1542,24 @@ function fix_system_urls($oldurl, $newurl) {
proc_run('php', 'include/notifier.php', 'refresh_all', $c[0]['channel_id']);
}
}
+
+ // now replace any remote xchans whose photos are stored locally (which will be most if not all remote xchans)
+
+ $r = q("select * from xchan where xchan_photo_l like '%s'",
+ dbesc($oldurl . '%')
+ );
+
+ if($r) {
+ foreach($r as $rr) {
+ $x = q("update xchan set xchan_photo_l = '%s', xchan_photo_m = '%s', xchan_photo_s = '%s' where xchan_hash = '%s'",
+ 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($rr['xchan_hash'])
+ );
+ }
+ }
+
}