mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 02:05:19 +02:00
automatically subscribe to hub if conditions are right
This commit is contained in:
parent
f5615068ca
commit
7658acbe0a
3 changed files with 2 additions and 18 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue