Skip to content

[Tiktok mentions] - parsing does not match tiktok mention behaviour #406

Open
@RossCurry

Description

@RossCurry

Users on the TIKTOK platform can include hyphens '-' in their nicknames. (possibly other characters)
As an example: user with nickname '---------'

Autolinker is following the available TIKTOK documentation for usernames (eventually used in a URL).

But TIKTOK, in their documentation for nicknames, don't mention any such restrictions.

I think its pretty logical to assume the same restrictions, however this is not the case.

The problem with all of this is that TIKTOK uses a users nickname for mentions. So mentions that include hyphens (and possibly more characters (hard to test, I can only change my nickname once a week) get cut short, and so the matchedText isn't correct.

Some more testing will have to be done, but I think eventually the REGEXP here for TIKTOK should be changed.

I'll try and test a bit more as soon as I can to determine exactly what characters are accepted for a nickname.

Update: i've since opened another 2 accounts with nicknames:
r@$$…€()44¥ & social hub spaces
I would say there are almost no restrictions to what a nickname can be.
So parsing text: 'Keep trying @social hub spaces' I got matchedText: '@social',

Possibly the white space is an edge case that would be impossible to cater for 🤷🏻

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions