-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Matrix -> Twitter mentions do not work #12
Comments
Should be doable, involves some browser devtools on twitter.com/messages to find out how twitter sends mentions in messages (it's probably a separate field in the send request body) and then parsing the Matrix HTML similar to https://github.com/mautrix/facebook/blob/master/mautrix_facebook/formatter/from_matrix.py to generate that field Other direction already happens in https://github.com/mautrix/twitter/blob/master/mautrix_twitter/formatter.py |
Mostly notes for myself as I debug this, but it appears what happens when a user is mentioned is
I'll check out what the formatter is doing to the value of "text" and "user_mentions." Currently it appears the formatter is only sending the full Matrix username in the "text" field, and not including the expected "entities" key. |
There's currently no formatter in the Matrix -> Twitter direction, the bridge just sends the plain body. |
If a user mentions a Twitter user on Matrix, it appears on the Twitter end in plain text as the Matrix user's display name.
Is this a fundamental limitation of the bridge? If not, I would be interested in contributing a fix.
The text was updated successfully, but these errors were encountered: