update even if no change

This commit is contained in:
friendica 2013-10-14 22:20:14 -07:00
parent b75163fb80
commit 89378fb12a

View File

@ -723,6 +723,14 @@ function import_xchan($arr,$ud_flags = 1) {
update_modtime($xchan_hash,$guid,$arr['address'],$ud_flags); update_modtime($xchan_hash,$guid,$arr['address'],$ud_flags);
logger('import_xchan: changed: ' . $what,LOGGER_DEBUG); logger('import_xchan: changed: ' . $what,LOGGER_DEBUG);
} }
elseif(! $ud_flags) {
// nothing changed but we still need to update the updates record
q("update updates set ud_flags = ( ud_flags | %d ) where ud_addr = '%s' and not (ud_flags & %d) ",
intval(UPDATE_FLAGS_UPDATED),
dbesc($arr['address']),
intval(UPDATE_FLAGS_UPDATED)
);
}
if(! x($ret,'message')) { if(! x($ret,'message')) {
$ret['success'] = true; $ret['success'] = true;