summaryrefslogtreecommitdiff
path: root/plugins/OStatus
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-08-03 16:01:18 -0700
committerEvan Prodromou <evan@status.net>2010-08-03 16:01:18 -0700
commit2ba36fc2428ed41d74e123d49de38accc48415e3 (patch)
tree9665cc9b92b7ebed255ceeb87f82efe460548edc /plugins/OStatus
parentf9a4728fcc5d93a019bc72f44c836fa51c2e8ea7 (diff)
parentcc71f1ae826cc7c186f38ac902d963dc8f65caeb (diff)
Merge branch 'activityhooks' into 0.9.x
Conflicts: classes/Notice.php
Diffstat (limited to 'plugins/OStatus')
-rw-r--r--plugins/OStatus/OStatusPlugin.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php
index c735c02db..70971c5b3 100644
--- a/plugins/OStatus/OStatusPlugin.php
+++ b/plugins/OStatus/OStatusPlugin.php
@@ -956,4 +956,16 @@ class OStatusPlugin extends Plugin
}
return false;
}
+
+ public function onStartProfileGetAtomFeed($profile, &$feed)
+ {
+ $oprofile = Ostatus_profile::staticGet('profile_id', $profile->id);
+
+ if (empty($oprofile)) {
+ return true;
+ }
+
+ $feed = $oprofile->feeduri;
+ return false;
+ }
}