Bluesky: don't remove hashtags upon posting #1402

Merged
MrPetovan merged 1 commit from heluecht/friendica-addons:bluesky-tags into develop 2023-07-08 17:02:46 +02:00

View file

@ -659,8 +659,8 @@ function bluesky_create_post(array $item, stdClass $root = null, stdClass $paren
function bluesky_get_urls(string $body): array function bluesky_get_urls(string $body): array
{ {
// Remove all hashtags and mentions // Remove all hashtag and mention links
$body = preg_replace("/([#@!])\[url\=(.*?)\](.*?)\[\/url\]/ism", '', $body); $body = preg_replace("/([#@!])\[url\=(.*?)\](.*?)\[\/url\]/ism", '$1$3', $body);
$urls = []; $urls = [];