projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bc0568
)
use notice URI if it's not local and it's an HTTP URL
author
Evan Prodromou
<evan@prodromou.name>
Tue, 26 Aug 2008 21:03:14 +0000
(17:03 -0400)
committer
Evan Prodromou
<evan@prodromou.name>
Tue, 26 Aug 2008 21:03:14 +0000
(17:03 -0400)
darcs-hash:
20080826210314
-84dde-
34d4eb71c7d74b65c0c4b486f345ed7d9301af15
.gz
lib/stream.php
patch
|
blob
|
history
diff --git
a/lib/stream.php
b/lib/stream.php
index 64dbcbce3665da592b6a555e98a6de3a40d3821c..b94033d6a0af3843c40ad1af220762e83482b929 100644
(file)
--- 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,