fix(data): Correct post source field before saving to fix community filtering

This commit is contained in:
chelsea
2025-10-12 20:53:15 -05:00
parent 1a999ab00b
commit 1a6ad08079

View File

@@ -211,6 +211,12 @@ def collect_platform(platform: str, community: str, start_date: str, end_date: s
if post_id in index:
continue
# ====================================================================
# FIX: Correct the post's source field BEFORE saving
# ====================================================================
post['source'] = community if community else platform
# ====================================================================
# Save post
post_uuid = save_post(post, platform, index, dirs)
added_count += 1