From f61185ff3ae4e1cc408182e29f9653c75b80902e Mon Sep 17 00:00:00 2001 From: Corentin Garcia Date: Sat, 30 Mar 2024 20:14:07 +0100 Subject: [PATCH] fix(popular): add everywhere geo filter --- CHANGELOG.md | 6 +++++- eddrit/__init__.py | 2 +- eddrit/reddit/fetch.py | 2 +- pyproject.toml | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5953179..f69be2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,14 @@ +# Version 0.8.4 + +- For the popular page, set the geo filter to "everywhere" + # Version 0.8.3 - Spoof the official Android app to bypass rate-limiting. Thanks to [redlib](https://github.com/redlib-org/redlib) for the Android app spoofing code. # Version 0.8.2 -- Fix settings cookies expiration as reported by [ValiumBear](https://github.com/ValiumBear) [in](https://github.com/corenting/eddrit/issues/143) +- Fix settings cookies expiration as reported by [ValiumBear](https://github.com/ValiumBear) in [#143](https://github.com/corenting/eddrit/issues/143) - Fix search page not working # Version 0.8.1 diff --git a/eddrit/__init__.py b/eddrit/__init__.py index ecf6ef7..7a59ed0 100644 --- a/eddrit/__init__.py +++ b/eddrit/__init__.py @@ -4,7 +4,7 @@ from eddrit import config -__version__ = "0.8.3" +__version__ = "0.8.4" logger.remove() logger.add(sys.stderr, level=config.LOG_LEVEL) diff --git a/eddrit/reddit/fetch.py b/eddrit/reddit/fetch.py index 01ddd96..544bcac 100644 --- a/eddrit/reddit/fetch.py +++ b/eddrit/reddit/fetch.py @@ -44,7 +44,7 @@ async def get_frontpage_posts( ) -> tuple[list[models.Post], models.Pagination]: ret = await _get_posts_for_url( http_client, - f"{get_reddit_base_url()}/.json", + f"{get_reddit_base_url()}/.json?geo_filter=GLOBAL", pagination, is_popular_or_all=True, ) diff --git a/pyproject.toml b/pyproject.toml index ba014eb..dffc5e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "eddrit" -version = "0.8.3" +version = "0.8.4" description = "Alternative Reddit frontend" authors = ["corenting "] license = "MIT"