diff --git a/README.md b/README.md index d4194c4f..9ede35fe 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,11 @@ _mark the things you love._ [NeoDB.social](https://neodb.social) and [NiceDB](https://nicedb.org) are free instances hosted by volunteers. Your support is essential to keep these services free and open-sourced. -[![Kofi](https://img.shields.io/badge/Ko--Fi-Donate-orange?label=Support%20this%20project%20on%20Ko-fi&style=for-the-badge&color=ff5f5f&logo=ko-fi)](https://ko-fi.com/neodb) - -Follow us on [Fediverse](https://mastodon.social/@neodb) or join our [Discord community](https://discord.gg/QBHkrV8bxK) to share your ideas/questions/creations +Follow us on [Fediverse](https://mastodon.online/@neodb), [Bluesky](https://bsky.app/profile/neodb.net) or join our [Discord community](https://discord.gg/QBHkrV8bxK) to share your ideas/questions/creations [![Mastodon](https://img.shields.io/mastodon/follow/106919732872456302?style=for-the-badge&logo=mastodon&logoColor=fff&label=%40neodb%40mastodon.social&color=6D75D2)](https://mastodon.social/@neodb) -[![Discord](https://img.shields.io/discord/1041738638364528710?label=Discord%20Community&logo=discord&logoColor=fff&color=6D75D2&style=for-the-badge)](https://discord.gg/QBHkrV8bxK) +[![Discord](https://img.shields.io/discord/1041738638364528710?label=Discord&logo=discord&logoColor=fff&color=6D75D2&style=for-the-badge)](https://discord.gg/QBHkrV8bxK) +[![Kofi](https://img.shields.io/badge/Ko--Fi-Donate-orange?label=Support%20NeoDB%20on%20Ko-fi&style=for-the-badge&color=ff5f5f&logo=ko-fi)](https://ko-fi.com/neodb) ## Features - Manage a shared catalog of books/movies/tv shows/music album/games/podcasts/performances diff --git a/catalog/search/external.py b/catalog/search/external.py index c82e3e08..922357fa 100644 --- a/catalog/search/external.py +++ b/catalog/search/external.py @@ -224,9 +224,9 @@ class Spotify: if j.get("albums"): for a in j["albums"]["items"]: title = a["name"] - subtitle = a["release_date"] - for artist in a["artists"]: - subtitle += " " + artist["name"] + subtitle = a.get("release_date", "") + for artist in a.get("artists", []): + subtitle += " " + artist.get("name", "") url = a["external_urls"]["spotify"] cover = a["images"][0]["url"] if a.get("images") else None results.append( diff --git a/catalog/search/typesense.py b/catalog/search/typesense.py index 60034655..81ff83b4 100644 --- a/catalog/search/typesense.py +++ b/catalog/search/typesense.py @@ -352,7 +352,7 @@ class Indexer: f = [] if categories: f.append(f"category:= [{','.join(categories)}]") - if tag: + if tag and tag != "_": f.append(f"tags:= '{tag}'") filters = " && ".join(f) options = { diff --git a/journal/views/profile.py b/journal/views/profile.py index 5209019c..63aa60e7 100644 --- a/journal/views/profile.py +++ b/journal/views/profile.py @@ -88,7 +88,7 @@ def profile(request: AuthedHttpRequest, user_name): year = None else: today = datetime.date.today() - if today.month > 11: + if today.month >= 11: year = today.year elif today.month < 2: year = today.year - 1 diff --git a/journal/views/wrapped.py b/journal/views/wrapped.py index 34525eab..532f1666 100644 --- a/journal/views/wrapped.py +++ b/journal/views/wrapped.py @@ -115,7 +115,7 @@ class WrappedShareView(LoginRequiredMixin, TemplateView): def post(self, request: HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse: img = base64.b64decode(request.POST.get("img", "")) comment = request.POST.get("comment", "") - visibility = VisibilityType(request.POST.get("visibility", 0)) + visibility = VisibilityType(int(request.POST.get("visibility", 0))) user: User = request.user # type: ignore identity = user.identity media = Takahe.upload_image( diff --git a/neodb-takahe b/neodb-takahe index 168ad0a9..40109a21 160000 --- a/neodb-takahe +++ b/neodb-takahe @@ -1 +1 @@ -Subproject commit 168ad0a97c15e721dcf34176c962e76f315b6a74 +Subproject commit 40109a21c68245bc6fc86ada0787a0f2696b45c3