update inbox location if it changes

This commit is contained in:
zotlabs 2018-12-04 03:24:41 -08:00
parent 643214917d
commit a516b82cef

View file

@ -1418,6 +1418,12 @@ class Activity {
dbesc($url)
);
}
if($inbox !== $r[0]['hubloc_callback']) {
$r = q("update hubloc set hubloc_callback = '%s' where hubloc_hash = '%s'",
dbesc($inbox),
dbesc($url)
);
}
$r = q("update hubloc set hubloc_updated = '%s' where hubloc_hash = '%s'",
dbesc(datetime_convert()),
dbesc($url)