Skip to content

Bluesky Service validation regexp too limitingΒ #952

@violoncelloCH

Description

@violoncelloCH

πŸ“œ Description

The regexp which validates the Bluesky service address is too limiting. It does not allow to add a URL which contains more than one (1) dot (.). So for any PDS which is hosted on a subdomain, e.g. bsky.example.org, connection is not possible.

https://github.com/gitroomhq/postiz-app/blob/5115d812e593debde2003cbfef8f4287fb9a174c/libraries/nestjs-libraries/src/integrations/social/bluesky.provider.ts#L158C22-L158C144

πŸ‘Ÿ Reproduction steps

  1. Add a new Channel
  2. Choose Bluesky
  3. Try to enter a valid address of a Bluesky Service (PDS) which is a subdomain (i.e. containing more than one dot)
  4. See that it says "Invalid Service" and does not allow you to log in.

πŸ‘ Expected behavior

Logging in to any valid Bluesky Service (PDS) should be possible.

πŸ‘Ž Actual Behavior with Screenshots

Image

πŸ’» Operating system

Linux

πŸ€– Node Version

Whatever ships with current (v2.5.3) docker image

πŸ“ƒ Provide any additional context for the Bug.

No response

πŸ‘€ Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find similar issue

Are you willing to submit PR?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions