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

[TwitterBridge] Continue using existing guesttoken from cache, when r… #2396

Merged

Conversation

arnd-s
Copy link
Contributor

@arnd-s arnd-s commented Dec 30, 2021

Continue using existing guesttoken from cache, when requesting a new one failed.

Comment on lines 548 to +551
$guestToken = $this->getGuestToken();
$gt_cache->saveData(array(self::GUEST_TOKEN_USES, $guestToken));
$r_cache->saveData(time());
if ($guestToken === null) {
if($guestTokenUses === null) {
returnServerError('Could not parse guest token');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will raise exception on $this->getGuestToken(), so it won't even return any value.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my false i missed a required change.

…eady existing guesttoken from cache can be reused
@em92
Copy link
Contributor

em92 commented Jan 1, 2022

Temporarily applied this patch to my public instance (feed.eugenemolotov.ru)

@em92 em92 merged commit 12ff697 into RSS-Bridge:master Jan 6, 2022
@em92
Copy link
Contributor

em92 commented Jan 6, 2022

gj!

@arnd-s arnd-s deleted the reuse_old_cached_guesttoken_on_failure branch January 6, 2022 07:22
@arnd-s arnd-s restored the reuse_old_cached_guesttoken_on_failure branch August 25, 2022 06:44
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