formatting and layout (tabs = 4 spaces, no trailing whitespace)
This commit is contained in:
parent
0d6318c92b
commit
3b9fd25787
|
@ -82,22 +82,17 @@ class ApiQvitterNotificationsAction extends ApiPrivateAuthAction
|
|||
*/
|
||||
function showTimeline()
|
||||
{
|
||||
|
||||
$notice = null;
|
||||
|
||||
$notifications_populated = array();
|
||||
|
||||
foreach($this->notifications as $notification) {
|
||||
|
||||
|
||||
foreach ($this->notifications as $notification) {
|
||||
// all but follow has an notice
|
||||
if($notification->ntype != 'follow') {
|
||||
|
||||
if ($notification->ntype != 'follow') {
|
||||
// we need a notice id here, skip this notification if notice id is null
|
||||
if($notification->notice_id === null) {
|
||||
continue;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$notice = self::twitterSimpleStatusArray(Notice::getKV($notification->notice_id));
|
||||
}
|
||||
}
|
||||
|
@ -105,8 +100,7 @@ class ApiQvitterNotificationsAction extends ApiPrivateAuthAction
|
|||
$from_profile = Profile::getKV($notification->from_profile_id);
|
||||
|
||||
// a user might have deleted their profile, don't show these notifications
|
||||
if($from_profile instanceof Profile) {
|
||||
|
||||
if ($from_profile instanceof Profile) {
|
||||
$notifications_populated[] = array(
|
||||
'id'=> $notification->id,
|
||||
'from_profile'=> self::twitterUserArray($from_profile),
|
||||
|
@ -115,7 +109,6 @@ class ApiQvitterNotificationsAction extends ApiPrivateAuthAction
|
|||
'created_at'=>self::dateTwitter($notification->created),
|
||||
'is_seen'=>$notification->is_seen
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user