aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-03 05:58:27 -0800
committerFriendika <info@friendika.com>2011-01-03 05:58:27 -0800
commit36b241c02b7640a72fd3432b511e635e4146e2e6 (patch)
tree7721cb4778f42a90642b755909a37d790d1263f1 /mod
parentcdf626e0e77c45e550054594738c9b59f0aeed18 (diff)
downloadvolse-hubzilla-36b241c02b7640a72fd3432b511e635e4146e2e6.tar.gz
volse-hubzilla-36b241c02b7640a72fd3432b511e635e4146e2e6.tar.bz2
volse-hubzilla-36b241c02b7640a72fd3432b511e635e4146e2e6.zip
change activitystreams unfollow to stop-follow but also send out OStatus unfollow
Diffstat (limited to 'mod')
-rw-r--r--mod/contacts.php3
-rw-r--r--mod/follow.php3
2 files changed, 4 insertions, 2 deletions
diff --git a/mod/contacts.php b/mod/contacts.php
index 33d1955a5..320c0f420 100644
--- a/mod/contacts.php
+++ b/mod/contacts.php
@@ -165,7 +165,8 @@ function contacts_content(&$a) {
'$type' => 'text',
'$content' => t('stopped following'),
'$nick' => $a->user['nickname'],
- '$verb' => ACTIVITY_UNFOLLOW
+ '$verb' => ACTIVITY_UNFOLLOW,
+ '$ostat_follow' => '<as:verb>http://ostatus.org/schema/1.0/unfollow</as:verb>' . "\r\n";
));
if((x($orig_record[0],'notify')) && (strlen($orig_record[0]['notify']))) {
diff --git a/mod/follow.php b/mod/follow.php
index 5f0f3f7e3..3c9d77657 100644
--- a/mod/follow.php
+++ b/mod/follow.php
@@ -173,7 +173,8 @@ function follow_post(&$a) {
'$type' => 'text',
'$content' => t('following'),
'$nick' => $a->user['nickname'],
- '$verb' => ACTIVITY_FOLLOW
+ '$verb' => ACTIVITY_FOLLOW,
+ '$ostat_follow' => ''
));
$r = q("SELECT `contact`.*, `user`.* FROM `contact` LEFT JOIN `user` ON `contact`.`uid` = `user`.`uid`