]> git.mxchange.org Git - friendica.git/commitdiff
no sparkle on federated network
authorMike Macgirvin <mike@macgirvin.com>
Mon, 25 Oct 2010 04:10:52 +0000 (21:10 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Mon, 25 Oct 2010 04:10:52 +0000 (21:10 -0700)
include/poller.php
mod/network.php

index b88b131e23a2f05da69eaeeb198bb19d8772db9f..e8bdc94a30df62a0cd0786d64de275fff0f2e784 100644 (file)
@@ -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` != '' ) ) 
 
                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) {
index 5958a5905052d588b1e417222c38ee010be590c8..426ad196c642224cc6722cf981ce3cfbbb62ead5 100644 (file)
@@ -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';
                                }