Repository navigation
fix(free-games): resolve FGF redd.it links so task giveaways are filtered - #31
Merged
Merged
Conversation
…ered The FreeGameFindings Bluesky source only exposes redd.it short-links, so the destination-based filters never saw the real host. Task giveaways that just look like "[Steam] (Game) X is free!" (gleam.io / givee.club / Alienware Arena / ...) were still announced: the domain blocklist can't match redd.it, and task detection runs on the post text, which carries no task keywords. Resolve each redd.it link to its real destination via the public Telegram mirror of the subreddit (t.me/s/r_freegamefindings), which reposts every submission with the destination link intact. The resolved URL is used for the game, so: - the existing domain blocklist (gleam.io, givee.club, woovit, keymailer) now matches on Bluesky posts; - extend the blocklist with the task hosts the resolver exposes (alienwarearena.com, key-hub.eu, igames.gg, steelseries.com, crucial.com); - legitimate Steam store links resolve to their store page, so they build the rich Steam embed (app id) instead of the plain fallback message. Resolution is best-effort: on any failure the original redd.it link is kept, so behaviour degrades to the previous state. Adds tests for the redd.it -> destination resolution and the mirror parsing.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Supply Chain Security StatusChecks Performed:
Best Practices:
Learn more: https://bernat.tech/posts/securing-python-supply-chain/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix(free-games): resolve FGF redd.it links so task giveaways are filtered
The FreeGameFindings Bluesky source only exposes redd.it short-links, so the
destination-based filters never saw the real host. Task giveaways that just look
like "[Steam] (Game) X is free!" (gleam.io / givee.club / Alienware Arena / ...)
were still announced: the domain blocklist can't match redd.it, and task
detection runs on the post text, which carries no task keywords.
Resolve each redd.it link to its real destination via the public Telegram mirror
of the subreddit (t.me/s/r_freegamefindings), which reposts every submission with
the destination link intact. The resolved URL is used for the game, so:
matches on Bluesky posts;
(alienwarearena.com, key-hub.eu, igames.gg, steelseries.com, crucial.com);
rich Steam embed (app id) instead of the plain fallback message.
Resolution is best-effort: on any failure the original redd.it link is kept, so
behaviour degrades to the previous state.
Adds tests for the redd.it -> destination resolution and the mirror parsing.