summaryrefslogtreecommitdiff
path: root/actions/showstream.php
diff options
context:
space:
mode:
authorRobin Millette <millette@controlyourself.ca>2009-05-18 17:18:57 -0400
committerRobin Millette <millette@controlyourself.ca>2009-05-18 17:18:57 -0400
commit0271859c2425daff6fbaeac74aee6d6a9fcdce16 (patch)
treea93565653ec11237b71a2bcf87d6fbe2fcbcb9f8 /actions/showstream.php
parent5897dfa4c37d6a44bcde5dc7569c8b0d30f21b84 (diff)
Added personal tag page: http://example.com/MY_NICK/tag/A_TAG
Diffstat (limited to 'actions/showstream.php')
-rw-r--r--actions/showstream.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index 82665e5b8..1654f589c 100644
--- a/actions/showstream.php
+++ b/actions/showstream.php
@@ -68,6 +68,9 @@ class ShowstreamAction extends ProfileAction
} else {
$base = $this->user->nickname;
}
+ if (!empty($this->tag)) {
+ $base .= sprintf(_(' tagged %s'), $this->tag);
+ }
if ($this->page == 1) {
return $base;
@@ -363,7 +366,9 @@ class ShowstreamAction extends ProfileAction
function showNotices()
{
- $notice = $this->user->getNotices(($this->page-1)*NOTICES_PER_PAGE, NOTICES_PER_PAGE + 1);
+ $notice = empty($this->tag)
+ ? $this->user->getNotices(($this->page-1)*NOTICES_PER_PAGE, NOTICES_PER_PAGE + 1)
+ : $this->user->getTaggedNotices(($this->page-1)*NOTICES_PER_PAGE, NOTICES_PER_PAGE + 1, 0, 0, null, $this->tag);
$pnl = new ProfileNoticeList($notice, $this);
$cnt = $pnl->show();