aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-05-13 20:17:52 -0700
committerfriendica <info@friendica.com>2014-05-13 20:17:52 -0700
commit2c27ba66a5a05a52a6f0144ebd3e65562edba14b (patch)
treeb8a62616a21006999fd212b090206ec5f5264930 /mod/item.php
parenta4869394f45886a9a6945c3ec0354dee42c1afda (diff)
downloadvolse-hubzilla-2c27ba66a5a05a52a6f0144ebd3e65562edba14b.tar.gz
volse-hubzilla-2c27ba66a5a05a52a6f0144ebd3e65562edba14b.tar.bz2
volse-hubzilla-2c27ba66a5a05a52a6f0144ebd3e65562edba14b.zip
zrlify (turn into zmg) any relevant img tags in a post.
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/item.php b/mod/item.php
index 164b345f0..9470a2b9c 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -440,6 +440,11 @@ function item_post(&$a) {
$body = preg_replace_callback('/\[\$b64url(.*?)\[\/(url)\]/ism','red_unescape_codeblock',$body);
$body = preg_replace_callback('/\[\$b64code(.*?)\[\/(code)\]/ism','red_unescape_codeblock',$body);
+ // fix any img tags that should be zmg
+
+ $body = preg_replace_callback('/\[img(.*?)\](.*?)\[\/img\]/ism','red_zrlify_img_callback',$body);
+
+
/**
*