diff options
author | Evan Prodromou <evan@status.net> | 2010-08-03 15:50:21 -0700 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-08-03 15:50:21 -0700 |
commit | f83171824f835ff9cd24bf0aea26f13c62b806cf (patch) | |
tree | f66e01184387b1afa454794f4ad6af318ef3759d /plugins/OStatus | |
parent | 744233c6dc385a5870652ab70e7141e75aaff783 (diff) |
correctly show <source> for atom feeds
Diffstat (limited to 'plugins/OStatus')
-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 c61e2cc5f..4fc9d4108 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -953,4 +953,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; + } } |