10000 [Notifier][Bluesky] Add support for tags facet by romainneutron · Pull Request #59784 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Notifier][Bluesky] Add support for tags facet #59784

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 7.4
Choose a base branch
from

Conversation

romainneutron
Copy link
Contributor
Q A
Branch? 7.3
Bug fix? no
New feature? yes
Deprecations? no
Issues Fix #...
License MIT

This PR adds support for tags facet on Bluesky notifier
The documentation is here https://docs.bsky.app/docs/advanced-guides/post-richtext

@carsonbot carsonbot added this to the 7.3 milestone Feb 15, 2025
@carsonbot carsonbot changed the title Add support for tags facet on Bluesky notifier [Notifier] Add support for tags facet on Bluesky notifier Feb 15, 2025
@OskarStark
Copy link
Contributor

Please add a line in the changelog, thanks

@romainneutron romainneutron force-pushed the fix-tags-notifier-blusky branch from 4697321 to a90ab12 Compare February 15, 2025 20:27
@@ -238,6 +238,39 @@ public function testParseFacetsUrlWithEmoji()
$this->assertEquals($expected, $output);
}

public function testParseFacetsHashTags()
{
$input = 'Salut #test #123 #テスト http://bsky.app';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you could update the URL http://bsky.app to use something like http://bsky.app#fragment to see if the regex doesn't catch the URL fragment as a hashtag. Thanks.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding URLs (and tags), this is already the default behavior when not using facets. Any benefits in doing it via facets?

Copy link
Member
@fabpot fabpot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@romainneutron It's great to see you here! Welcome back.

@@ -238,6 +238,39 @@ public function testParseFacetsUrlWithEmoji()
$this->assertEquals($expected, $output);
}

public function testParseFacetsHashTags()
{
$input = 'Salut #test #123 #テスト http://bsky.app';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding URLs (and tags), this is already the default behavior when not using facets. Any benefits in doing it via facets?

@OskarStark OskarStark changed the title [Notifier] Add support for tags facet on Bluesky notifier [Notifier][Bluesky] Add support for tags facet Feb 28, 2025
@OskarStark
Copy link
Contributor

friendly ping @romainneutron and can you also add an entry to the CHANGELOG? Thanks

@fabpot fabpot modified the milestones: 7.3, 7.4 May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0