$notice = $this->getNotices(0, 1);
if ($notice->fetch()) {
+ if ($notice instanceof ArrayWrapper) {
+ // hack for things trying to work with single notices
+ return $notice->_items[0];
+ }
return $notice;
} else {
return null;
case Right::EMAILONFAVE:
$result = !$this->isSandboxed();
break;
+ case Right::WEBLOGIN:
+ $result = !$this->isSilenced();
+ break;
+ case Right::API:
+ $result = !$this->isSilenced();
+ break;
case Right::BACKUPACCOUNT:
$result = common_config('profile', 'backup');
break;
*
* @param User $cur Current user
*
- * @return array representation of <statusnet:profile_info> element
+ * @return array representation of <statusnet:profile_info> element or null
*/
function profileInfo($cur)
{
- $profileInfoAttr = array();
+ $profileInfoAttr = array('local_id' => $this->id);
if ($cur != null) {
// Whether the current user is a subscribed to this profile