Simplify game addition notification in GameFeed; update links format
All checks were successful
Deploy to Server / deploy (push) Successful in 9s

This commit is contained in:
Joakim Hellsén 2026-03-09 06:37:16 +01:00
commit b3974280d4
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk

View file

@ -444,22 +444,13 @@ class GameFeed(Feed):
game_url: str = reverse("twitch:game_detail", args=[twitch_id])
rss_feed_url: str = reverse("twitch:game_campaign_feed", args=[twitch_id])
twitch_directory_url: str = getattr(item, "twitch_directory_url", "")
if slug:
description_parts.append(
SafeText(
f"<p>New game has been added to ttvdrops.lovinator.space: {game_name} by {game_owner}\n"
f"<a href='{game_url}'>Game Details</a>\n"
f"<a href='{twitch_directory_url}'>Twitch</a>\n"
f"<a href='{rss_feed_url}'>RSS feed</a>\n</p>",
),
)
else:
description_parts.append(
SafeText(
f"<p>A new game has been added to ttvdrops.lovinator.space: {game_name} by {game_owner}\n"
f"<a href='{game_url}'>Game Details</a>\n"
f"<a href='{twitch_directory_url}'>Twitch</a>\n"
f"<a href='{rss_feed_url}'>RSS feed</a>\n</p>",
f"<p>New game has been added to ttvdrops.lovinator.space: {game_name} by {game_owner}\n\n"
f"<a href='{game_url}'>[Details]</a> "
f"<a href='{twitch_directory_url}'>[Twitch]</a> "
f"<a href='{rss_feed_url}'>[RSS feed]</a>\n</p>",
),
)