summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/stream.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/stream.php b/lib/stream.php
index 64dbcbce3..b94033d6a 100644
--- a/lib/stream.php
+++ b/lib/stream.php
@@ -96,6 +96,10 @@ class StreamAction extends Action {
}
common_element_end('p');
$noticeurl = common_local_url('shownotice', array('notice' => $notice->id));
+ # XXX: we need to figure this out better
+ if ($notice->uri != $noticeurl && preg_match('/^http/', $notice->uri)) {
+ $noticeurl = $notice->uri;
+ }
common_element_start('p', 'time');
common_element('a', array('class' => 'permalink',
'href' => $noticeurl,