Skip to content
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

Have reports follow users through username changes #105

Open
bethylamine opened this issue Feb 22, 2024 · 2 comments
Open

Have reports follow users through username changes #105

bethylamine opened this issue Feb 22, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@bethylamine
Copy link
Owner

This one is tough, because it requires some digging into Twitter's webclient internals, but it would be good to have user ID retrieved and checked against to allow reports to carry over username changes. Unsure if it's possible in all cases, but I believe BlueBlocker does intercept data for this purpose so it may be helpful to take a page from their book @kheina

@bethylamine bethylamine added the enhancement New feature or request label Feb 22, 2024
@rougetimelord
Copy link
Contributor

Hi! I'm one of the maintainers over on BlueBlocker. We get this info by overwriting the XHR prototype to send out custom events when Twitter servers give the client new tweets to render.

A note for integration, you can detect BlueBlocker by checking for a script tag with the ID injected-blue-block-xhr.

@rougetimelord
Copy link
Contributor

rougetimelord commented Apr 17, 2024

Another update, since v0.4.0 BlueBlocker has a new integrations API. See the BlueBlocker integration wiki page. If users set up the integration with either send only or send and receive BlueBlocker will send over a user object with their UID accessible at message.data.rest_id. It should be pretty easy to attach that to users in your database and then check for changes in username using message.data.legacy.screen_name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants