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

fix: link colours in timeline not showing #879

Merged
merged 11 commits into from
Jul 15, 2024
Merged

Conversation

not-nullptr
Copy link
Contributor

this PR adds back support for legacy link colours by fetching profile data on the timeline and caching it in order to prevent rate limits. once a user has appeared on the timeline once, their colour (or lack thereof) is stored forever, and an XHR call will not be performed for them ever again. this works because you can't change your legacy link colour anymore.

it also increases the scroll height from the bottom required to trigger new tweets to appear. this change was done in order to mask the newfound latency in fetching user data and asynchronous extension storage reads, and fixes a bug where colours weren't fetched when the "Load more" button is clicked.

@dimdenGD
Copy link
Owner

remove random console.logs also check if toFetch is not empty before fetching

@not-nullptr
Copy link
Contributor Author

all done.

@dimdenGD dimdenGD merged commit 85e3719 into dimdenGD:master Jul 15, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants