From 77e1ec6df2076183cf3643170a474278f368f968 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 2 May 2021 17:33:32 +0000 Subject: [PATCH] Improved link detection --- src/Content/PageInfo.php | 9 +++++++-- src/Model/Item.php | 10 +++++++++- src/Model/Post/Media.php | 24 ++++++++++++++++++++---- 3 files changed, 36 insertions(+), 7 deletions(-) diff --git a/src/Content/PageInfo.php b/src/Content/PageInfo.php index 7226ff2a4..21f32cd3c 100644 --- a/src/Content/PageInfo.php +++ b/src/Content/PageInfo.php @@ -253,10 +253,15 @@ class PageInfo // Fix for Mastodon where the mentions are in a different format $body = preg_replace("~\[url=($URLSearchString)]([#!@])(.*?)\[/url]~is", '$2[url=$1]$3[/url]', $body); - preg_match("~(?