Merge pull request 'Bluesky: don't remove hashtags upon posting' (#1402) from heluecht/friendica-addons:bluesky-tags into develop

Reviewed-on: https://git.friendi.ca/friendica/friendica-addons/pulls/1402
pull/558/head
Hypolite Petovan 2023-07-08 17:02:45 +02:00
commit 61a5973937
1 changed files with 2 additions and 2 deletions

View File

@ -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 = [];