summaryrefslogtreecommitdiff
path: root/lib/stream.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-07 01:43:58 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-07 01:43:58 -0400
commit8d3ec9c92076e172e5871e3603c143333d73ac3c (patch)
tree987471d0d11cec6e46d8520494eb63ea4985eba0 /lib/stream.php
parentf6303475aa512ce96759c9f39b7a4b7d2e6fb7f9 (diff)
twiddle a few bits to make replies work correctly
darcs-hash:20080707054358-84dde-916977a2af4f792e0dc9e02a9f5344ec60911319.gz
Diffstat (limited to 'lib/stream.php')
-rw-r--r--lib/stream.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/stream.php b/lib/stream.php
index 6bba0eace..e29b64c60 100644
--- a/lib/stream.php
+++ b/lib/stream.php
@@ -20,7 +20,6 @@
if (!defined('LACONICA')) { exit(1); }
define('NOTICES_PER_PAGE', 20);
-define('REPLIES_PER_PAGE', 20);
class StreamAction extends Action {
@@ -48,7 +47,7 @@ class StreamAction extends Action {
common_menu_item(common_local_url('replies', array('nickname' =>
$nickname)),
_t('Replies'),
- ($user && $user->fullname) ? $user->fullname : $nickname,
+ _t('Replies to ') . (($user && $user->fullname) ? $user->fullname : $nickname),
$action == 'replies');
common_menu_item(common_local_url('showstream', array('nickname' =>
$nickname)),
@@ -91,6 +90,8 @@ class StreamAction extends Action {
common_element_end('li');
}
+ # XXX: these are almost identical functions!
+
function show_reply($notice, $replied_id) {
global $config;
$profile = $notice->getProfile();
@@ -120,7 +121,7 @@ class StreamAction extends Action {
common_element('a', array('class' => 'notice',
'href' => $noticeurl),
common_date_string($notice->created));
- common_element('a', array('class' => 'notice',
+ common_element('a', array('class' => 'inreplyto',
'href' => $replyurl),
" in reply to ".$profile->nickname );
common_element_end('p');