From 727e8cc2989d47bfd8ef5fcadc62b1473a323a10 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 4 Nov 2013 20:43:32 -0800 Subject: don't store update records if we're not a directory server of some kind --- include/zot.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/zot.php b/include/zot.php index c4dce5ceb..c7c5c52b7 100644 --- a/include/zot.php +++ b/include/zot.php @@ -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), -- cgit v1.2.3