From d80d3767628536955d59e1007ca1192102e45e49 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 8 Jul 2023 14:54:56 +0000 Subject: [PATCH] Bluesky: don't remove hashtags upon posting --- bluesky/bluesky.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bluesky/bluesky.php b/bluesky/bluesky.php index c3e621f2..d96766d7 100644 --- a/bluesky/bluesky.php +++ b/bluesky/bluesky.php @@ -659,8 +659,8 @@ function bluesky_create_post(array $item, stdClass $root = null, stdClass $paren function bluesky_get_urls(string $body): array { - // Remove all hashtags and mentions - $body = preg_replace("/([#@!])\[url\=(.*?)\](.*?)\[\/url\]/ism", '', $body); + // Remove all hashtag and mention links + $body = preg_replace("/([#@!])\[url\=(.*?)\](.*?)\[\/url\]/ism", '$1$3', $body); $urls = []; -- 2.39.5