summaryrefslogtreecommitdiff
path: root/actions/all.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/all.php')
-rw-r--r--actions/all.php8
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);