summaryrefslogtreecommitdiff
path: root/plugins/OStatus/classes/Ostatus_profile.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-02-24 20:38:38 +0000
committerBrion Vibber <brion@pobox.com>2010-02-24 20:38:38 +0000
commit0c7844734edbed42c2ea3046dc1418cba828e583 (patch)
treeea4a96dfd23753311ad8ddfba3c983f41a79f6dd /plugins/OStatus/classes/Ostatus_profile.php
parentc36bdc1ba535dc3e2dc9098dbe40735b1955d96d (diff)
parent269d567d9440e3c943f67aad428efce9d112385c (diff)
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Diffstat (limited to 'plugins/OStatus/classes/Ostatus_profile.php')
-rw-r--r--plugins/OStatus/classes/Ostatus_profile.php16
1 files changed, 3 insertions, 13 deletions
diff --git a/plugins/OStatus/classes/Ostatus_profile.php b/plugins/OStatus/classes/Ostatus_profile.php
index 61505206e..5e38a523e 100644
--- a/plugins/OStatus/classes/Ostatus_profile.php
+++ b/plugins/OStatus/classes/Ostatus_profile.php
@@ -299,18 +299,9 @@ class Ostatus_profile extends Memcached_DataObject
throw new ServerException("Remote groups can't subscribe to local users");
}
- // @fixme use regular channels for subbing, once they accept remote profiles
- $sub = new Subscription();
- $sub->subscriber = $this->profile_id;
- $sub->subscribed = $user->id;
- $sub->created = common_sql_now(); // current time
-
- if ($sub->insert()) {
- // @fixme use subs_notify() if refactored to take profiles?
- mail_subscribe_notify_profile($user, $this->localProfile());
- return true;
- }
- return false;
+ Subscription::start($this->localProfile(), $user->getProfile());
+
+ return true;
}
/**
@@ -1163,7 +1154,6 @@ class Ostatus_profile extends Memcached_DataObject
}
}
-
protected static function getActivityObjectNickname($object, $hints=array())
{
if ($object->poco) {