summaryrefslogtreecommitdiff
path: root/plugins/OStatus/OStatusPlugin.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-02-12 00:22:16 +0000
committerBrion Vibber <brion@pobox.com>2010-02-12 00:22:16 +0000
commit8e6b52e8994ce9a3180554f999bdc89b414fc892 (patch)
tree233dbc8374737133c05e61d24fbbacce74b0b5e1 /plugins/OStatus/OStatusPlugin.php
parente08657d56cc10d2cf45e9e5701856d8a0dc7351e (diff)
OStatus: renamed feedinfo table to ostatus_profile -- will cover remote ostatus people and groups whether a subscription's active or not (maintains identity over unsub/resub, and between subscribers and subscribees)
Diffstat (limited to 'plugins/OStatus/OStatusPlugin.php')
-rw-r--r--plugins/OStatus/OStatusPlugin.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php
index c0f9dadc4..8444c3d73 100644
--- a/plugins/OStatus/OStatusPlugin.php
+++ b/plugins/OStatus/OStatusPlugin.php
@@ -251,14 +251,14 @@ class OStatusPlugin extends Plugin
*/
function onEndUnsubscribe($user, $other)
{
- $feed = Feedinfo::staticGet('profile_id', $other->id);
+ $profile = Ostatus_profile::staticGet('profile_id', $other->id);
if ($feed) {
$sub = new Subscription();
$sub->subscribed = $other->id;
$sub->limit(1);
if (!$sub->find(true)) {
common_log(LOG_INFO, "Unsubscribing from now-unused feed $feed->feeduri on hub $feed->huburi");
- $feed->unsubscribe();
+ $profile->unsubscribe();
}
}
return true;
@@ -269,7 +269,7 @@ class OStatusPlugin extends Plugin
*/
function onCheckSchema() {
$schema = Schema::get();
- $schema->ensureTable('feedinfo', Feedinfo::schemaDef());
+ $schema->ensureTable('ostatus_profile', Ostatus_profile::schemaDef());
$schema->ensureTable('hubsub', HubSub::schemaDef());
return true;
}