From f0602ec2f4c2234f1763aee2bd3e9062a65eaae4 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 10 Jul 2021 15:36:08 +0200 Subject: unshorturl: Include post body to do replacement in --- unshorturl/unshorturl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unshorturl/unshorturl.php b/unshorturl/unshorturl.php index abd2779..8b4e3be 100644 --- a/unshorturl/unshorturl.php +++ b/unshorturl/unshorturl.php @@ -27,5 +27,5 @@ function unshorturl_prepare_body(&$body) { return; } - preg_replace('/https?:\/\/bit.ly\/[^\s]+/g', '[hidden bitly link]'); + preg_replace('/https?:\/\/bit.ly\/[^\s]+/g', '[hidden bitly link]', $body['html']); } -- cgit v1.2.3