forked from GNUsocial/gnu-social
Merge commit 'br3nda/0.8.x-hashtags' into 0.8.x
This commit is contained in:
@@ -211,7 +211,7 @@ class Router
|
||||
array('tag' => '[a-zA-Z0-9]+'));
|
||||
$m->connect('tag/:tag',
|
||||
array('action' => 'tag'),
|
||||
array('tag' => '[a-zA-Z0-9]+'));
|
||||
array('tag' => '[\pL\pN_\-\.]{1,64}'));
|
||||
|
||||
$m->connect('peopletag/:tag',
|
||||
array('action' => 'peopletag'),
|
||||
|
@@ -404,7 +404,7 @@ function common_render_text($text)
|
||||
|
||||
$r = preg_replace('/[\x{0}-\x{8}\x{b}-\x{c}\x{e}-\x{19}]/', '', $r);
|
||||
$r = common_replace_urls_callback($r, 'common_linkify');
|
||||
$r = preg_replace('/(^|\(|\[|\s+)#([A-Za-z0-9_\-\.]{1,64})/e', "'\\1#'.common_tag_link('\\2')", $r);
|
||||
$r = preg_replace('/(^|\(|\[|\s+)#([\pL\pN_\-\.]{1,64})/e', "'\\1#'.common_tag_link('\\2')", $r);
|
||||
// XXX: machine tags
|
||||
return $r;
|
||||
}
|
||||
|
Reference in New Issue
Block a user