diff options
author | Evan Prodromou <evan@status.net> | 2010-08-03 16:01:18 -0700 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-08-03 16:01:18 -0700 |
commit | 2ba36fc2428ed41d74e123d49de38accc48415e3 (patch) | |
tree | 9665cc9b92b7ebed255ceeb87f82efe460548edc /plugins | |
parent | f9a4728fcc5d93a019bc72f44c836fa51c2e8ea7 (diff) | |
parent | cc71f1ae826cc7c186f38ac902d963dc8f65caeb (diff) |
Merge branch 'activityhooks' into 0.9.x
Conflicts:
classes/Notice.php
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/OStatus/OStatusPlugin.php | 12 |
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; + } } |