mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 00:33:40 +00:00
Bluesky: don't remove hashtags upon posting
This commit is contained in:
parent
463f5eb7e0
commit
d80d376762
1 changed files with 2 additions and 2 deletions
|
@ -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 = [];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue