aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-04 20:43:32 -0800
committerfriendica <info@friendica.com>2013-11-04 20:43:32 -0800
commit727e8cc2989d47bfd8ef5fcadc62b1473a323a10 (patch)
tree15b6c767bfb301da4f06bb07b36c7c21fbad8866 /include/zot.php
parentf89e7b2bd549474439e684c052623af7e2e8d27d (diff)
downloadvolse-hubzilla-727e8cc2989d47bfd8ef5fcadc62b1473a323a10.tar.gz
volse-hubzilla-727e8cc2989d47bfd8ef5fcadc62b1473a323a10.tar.bz2
volse-hubzilla-727e8cc2989d47bfd8ef5fcadc62b1473a323a10.zip
don't store update records if we're not a directory server of some kind
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php5
1 files changed, 5 insertions, 0 deletions
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),