From ded449f69747856e5a875784544387b2e06054b6 Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 5 Apr 2011 23:06:03 -0700 Subject: [PATCH] ostatus doesn't accept activitystreams stop-follow verb or multiple verbs, insists on single ostatus unfollow #non-standard --- .htaccess | 3 --- mod/contacts.php | 4 ++-- mod/follow.php | 2 ++ 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.htaccess b/.htaccess index 9322b92820..fe09fc5224 100644 --- a/.htaccess +++ b/.htaccess @@ -1,10 +1,7 @@ - Options -Indexes AddType application/x-java-archive .jar AddType audio/ogg .oga -#php_value suhosin.get.max_value_length = 2048 - Deny from all diff --git a/mod/contacts.php b/mod/contacts.php index aee6548fe6..4d5311b699 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -180,8 +180,8 @@ function contacts_content(&$a) { '$type' => 'text', '$content' => t('stopped following'), '$nick' => $a->user['nickname'], - '$verb' => ACTIVITY_UNFOLLOW, - '$ostat_follow' => 'http://ostatus.org/schema/1.0/unfollow' . "\r\n" + '$verb' => 'http://ostatus.org/schema/1.0/unfollow', // ACTIVITY_UNFOLLOW, + '$ostat_follow' => '' // 'http://ostatus.org/schema/1.0/unfollow' . "\r\n" )); if((x($orig_record[0],'notify')) && (strlen($orig_record[0]['notify']))) { diff --git a/mod/follow.php b/mod/follow.php index 48ad667476..f30ecdc921 100644 --- a/mod/follow.php +++ b/mod/follow.php @@ -92,6 +92,8 @@ function follow_post(&$a) { if($h) $vcard['photo'] = $h['scheme'] . '://' . $h['host'] . $vcard['photo']; } + + logger('mod_follow: scrape_vcard: ' . print_r($vcard,true), LOGGER_DATA); } if(! $profile) {