aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-01 04:41:53 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-01 04:41:53 -0700
commit7658acbe0adfb499d9460172849f7530b476a8bb (patch)
tree6cd20f3e1bb19c0c3e4688f713091929bf03044b /include
parentf5615068ca338153ab7dacf5c9ce46c6ed7b1ab4 (diff)
downloadvolse-hubzilla-7658acbe0adfb499d9460172849f7530b476a8bb.tar.gz
volse-hubzilla-7658acbe0adfb499d9460172849f7530b476a8bb.tar.bz2
volse-hubzilla-7658acbe0adfb499d9460172849f7530b476a8bb.zip
automatically subscribe to hub if conditions are right
Diffstat (limited to 'include')
-rw-r--r--include/poller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/poller.php b/include/poller.php
index fc77946f9..ab3987d65 100644
--- a/include/poller.php
+++ b/include/poller.php
@@ -164,7 +164,7 @@
consume_feed($xml,$importer,$contact,$hub);
- if($contact['usehub'] && strlen($hub)) {
+ if((strlen($hub)) && (contact['rel'] == REL_BUD) && ($contact['priority'] == 0)) {
subscribe_to_hub($hub,$importer,$contact);
}