tinycm diff index.cgi @ rev 91

Handle @username@ in document and wall to link to user profile
author Christophe Lincoln <pankso@slitaz.org>
date Fri Feb 17 00:46:34 2017 +0100 (2017-02-17)
parents d6f01c5019bb
children 69214a677729
line diff
     1.1 --- a/index.cgi	Sat Feb 11 21:14:02 2017 +0100
     1.2 +++ b/index.cgi	Fri Feb 17 00:46:34 2017 +0100
     1.3 @@ -283,7 +283,8 @@
     1.4  		-e s"#\[\([^]]*\)|\($doc\)\]#<a href='$script?d=\2'>\1</a>#"g \
     1.5  		-e s"#\[\([^]]*\)!\($doc\)\]#<a href='\2'>\1</a>#"g \
     1.6  		-e s"#\[\(http://*[^]]*.png\)\]#<img src='\1' />#"g \
     1.7 -		-e s"#\[\([^]]*.png\)\]#<img src='content/cloud/\1' />#"g
     1.8 +		-e s"#\[\([^]]*.png\)\]#<img src='content/cloud/\1' />#"g \
     1.9 +		-e s"#@\([^']*\)@#<a href='$script?user=\1'>\1</a>#"g
    1.10  }
    1.11  
    1.12  link_user() {