aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-24 21:10:52 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-24 21:10:52 -0700
commit1335ef759522ef9f877c8e8fd806cf9bba36297d (patch)
tree0705c1e6df0c6451fa3572025614665b1e91df7f
parentb41218ca303b9fd8258fd613915d3c4b9fd411c0 (diff)
downloadvolse-hubzilla-1335ef759522ef9f877c8e8fd806cf9bba36297d.tar.gz
volse-hubzilla-1335ef759522ef9f877c8e8fd806cf9bba36297d.tar.bz2
volse-hubzilla-1335ef759522ef9f877c8e8fd806cf9bba36297d.zip
no sparkle on federated network
-rw-r--r--include/poller.php3
-rw-r--r--mod/network.php2
2 files changed, 3 insertions, 2 deletions
diff --git a/include/poller.php b/include/poller.php
index b88b131e2..e8bdc94a3 100644
--- a/include/poller.php
+++ b/include/poller.php
@@ -21,6 +21,7 @@
$a->set_baseurl(get_config('system','url'));
+ // 'stat' clause is a temporary measure until we have federation subscriptions working both directions
$contacts = q("SELECT * FROM `contact`
WHERE ( ( `network` = 'dfrn' AND ( `dfrn-id` != '' OR (`issued-id` != '' AND `duplex` = 1)))
OR ( `network` = 'stat' AND `poll` != '' ) )
@@ -180,7 +181,7 @@
consume_feed($xml,$importer,$contact,$hub);
- if((strlen($hub)) && ($contact['rel'] == REL_BUD) && ($contact['priority'] == 0)) {
+ if((strlen($hub)) && (($contact['rel'] == REL_BUD) || (($contact['network'] === 'stat') && (! $contact['readonly']))) && ($contact['priority'] == 0)) {
$hubs = explode(',', $hub);
if(count($hubs)) {
foreach($hubs as $h) {
diff --git a/mod/network.php b/mod/network.php
index 5958a5905..426ad196c 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -263,7 +263,7 @@ function network_content(&$a, $update = 0) {
// Can we use our special contact URL for this author?
if(strlen($item['author-link'])) {
- if($item['author-link'] == $item['url'] && (! $item['self'])) {
+ if($item['author-link'] == $item['url'] && ($item['network'] === 'dfrn') && (! $item['self'])) {
$profile_link = $redirect_url;
$sparkle = ' sparkle';
}