]> git.mxchange.org Git - friendica.git/commitdiff
statusnet improvements
authorFriendika <info@friendika.com>
Sat, 2 Jul 2011 00:39:16 +0000 (17:39 -0700)
committerFriendika <info@friendika.com>
Sat, 2 Jul 2011 00:39:16 +0000 (17:39 -0700)
include/items.php
mod/salmon.php

index 4f6030e5ae0fd2c1b1ccbfc2f3d3c803ff032daf..9cafaea629b1f76dc8f97182cb965b24f6d373f2 100644 (file)
@@ -1449,11 +1449,11 @@ function new_follower($importer,$contact,$datarray,$item) {
        }
        else {
        
-               // create contact record - set to readonly
+               // create contact record
 
                $r = q("INSERT INTO `contact` ( `uid`, `created`, `url`, `name`, `nick`, `photo`, `network`, `rel`, 
                        `blocked`, `readonly`, `pending`, `writable` )
-                       VALUES ( %d, '%s', '%s', '%s', '%s', '%s', '%s', %d, 0, 1, 1, 1 ) ",
+                       VALUES ( %d, '%s', '%s', '%s', '%s', '%s', '%s', %d, 0, 0, 1, 1 ) ",
                        intval($importer['uid']),
                        dbesc(datetime_convert()),
                        dbesc($url),
index 3ace417cd86fd8f7fdb79088be87cb99226b0b81..2a53e914b790c838df791b01aa0d8b890e7a068c 100644 (file)
@@ -183,7 +183,11 @@ function salmon_post(&$a) {
        if(! count($r)) {
                logger('mod-salmon: Author unknown to us.');
        }       
-       if((count($r)) && ($r[0]['readonly'])) {
+
+       // is this a follower? Or have we ignored the person?
+       // If so we can not accept this post.
+
+       if((count($r)) && (($r[0]['readonly']) || ($r[0]['rel'] == REL_VIP)) {
                logger('mod-salmon: Ignoring this author.');
                salmon_return(202);
                // NOTREACHED