diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-06-18 11:45:48 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-06-18 11:45:48 -0700 |
commit | 3f54840b51d5565fdeb7057661ff730bc0e41833 (patch) | |
tree | 7bb2ab81f6523ccfb46eb4e5f3cd4d9ba7d56389 /actions/all.php | |
parent | b761cfd4094c778b533cf77570b655d25cfced6b (diff) |
Only show twitter msgs in your own inbox
Diffstat (limited to 'actions/all.php')
-rw-r--r-- | actions/all.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/actions/all.php b/actions/all.php index 03179a246..80fc9d54b 100644 --- a/actions/all.php +++ b/actions/all.php @@ -98,7 +98,13 @@ class AllAction extends ProfileAction function showContent() { - $notice = $this->user->noticesWithFriends(($this->page-1)*NOTICES_PER_PAGE, NOTICES_PER_PAGE + 1); + $cur = common_current_user(); + + if (!empty($cur) && $cur->id == $this->user->id) { + $notice = $this->user->noticeInbox(($this->page-1)*NOTICES_PER_PAGE, NOTICES_PER_PAGE + 1); + } else { + $notice = $this->user->noticesWithFriends(($this->page-1)*NOTICES_PER_PAGE, NOTICES_PER_PAGE + 1); + } $nl = new NoticeList($notice, $this); |