Fix RSS generation post selection logic for channel feeds

This commit is contained in:
vvzvlad
2025-02-04 04:33:05 +03:00
parent a4f1ffd7c9
commit c78cdbc468
+1 -1
View File
@@ -95,7 +95,7 @@ async def generate_channel_rss(channel: str, post_parser: Optional[PostParser] =
for post in group_posts:
current_title = post.get('title', '')
if current_title and current_title not in ['📷 Photo', '📹 Video', '📄 Document']:
main_post = description
main_post = post
break
merged_post = main_post.copy()