diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-08-26 17:03:14 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-08-26 17:03:14 -0400 |
commit | 4a28e70cf8c933642f73de677800dc255562cd58 (patch) | |
tree | 8207426c3bee4ede13b96d95ca6e03e8fbd0b7a3 /lib | |
parent | 0bc0568e66c9d5fb40eafbe26d96cf138f096660 (diff) |
use notice URI if it's not local and it's an HTTP URL
darcs-hash:20080826210314-84dde-34d4eb71c7d74b65c0c4b486f345ed7d9301af15.gz
Diffstat (limited to 'lib')
-rw-r--r-- | lib/stream.php | 4 |
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, |