don't store update records if we're not a directory server of some kind

This commit is contained in:
friendica 2013-11-04 20:43:32 -08:00
parent f89e7b2bd5
commit 727e8cc298

View File

@ -1567,6 +1567,11 @@ function import_directory_keywords($hash,$keywords) {
function update_modtime($hash,$guid,$addr,$flags = 0) {
$dirmode = intval(get_config('system','directory_mode'));
if($dirmode == DIRECTORY_MODE_NORMAL)
return;
if($flags) {
q("insert into updates (ud_hash, ud_guid, ud_date, ud_flags, ud_addr ) values ( '%s', '%s', '%s', %d, '%s' )",
dbesc($hash),