- Add profile_info tag to Atom author

- Normalize xmlns:statusnet links in the API
This commit is contained in:
Zach Copley
2010-06-22 16:28:06 -07:00
parent 1852eae36f
commit 1eec7f779f
4 changed files with 14 additions and 4 deletions

View File

@@ -208,11 +208,13 @@ class ApiAction extends Action
// Is the requesting user following this user?
$twitter_user['following'] = false;
$twitter_user['statusnet:blocking'] = false;
$twitter_user['notifications'] = false;
if (isset($this->auth_user)) {
$twitter_user['following'] = $this->auth_user->isSubscribed($profile);
$twitter_user['statusnet:blocking'] = $this->auth_user->hasBlocked($profile);
// Notifications on?
$sub = Subscription::pkeyGet(array('subscriber' =>