From 2d581992668b411020cc1dad16d8c05858c31a65 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 17 May 2008 10:46:42 -0400 Subject: more twiddling Placeholder for broadcasting notice updates. Fixup the local url function to include server and path. Add server and path to configuration array. Make new notice 303 redirect to shownotice. Make redirects work. Add link in streams to notices. darcs-hash:20080517144642-84dde-c267a6e3bb0717ad5a3a819a7cf65fdd5817ea8e.gz --- lib/stream.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/stream.php') diff --git a/lib/stream.php b/lib/stream.php index 912969380..6b2ab24ff 100644 --- a/lib/stream.php +++ b/lib/stream.php @@ -47,7 +47,9 @@ class StreamAction extends Action { $profile->nickname); # FIXME: URL, image, video, audio common_element('span', array('class' => 'content'), $notice->content); - common_element('span', array('class' => 'date'), + $noticeurl = common_local_url('shownotice', array('notice' => $notice->id)); + common_element('a', array('class' => 'notice', + 'href' => $noticeurl), common_date_string($notice->created)); common_end_element('div'); } -- cgit v1.2.3-54-g00ecf