From ab60bc753b3bab4985e42e3b454eccb6c1246bf8 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Fri, 22 Mar 2024 20:49:35 +1300 Subject: [PATCH] correct Accept header --- app/community/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/community/util.py b/app/community/util.py index 758f0bd3..44642fb0 100644 --- a/app/community/util.py +++ b/app/community/util.py @@ -122,7 +122,7 @@ def retrieve_mods_and_backfill(community_id: int): c.last_active = Post.query.filter(Post.community_id == community_id).order_by(desc(Post.posted_at)).first().posted_at db.session.commit() if community.ap_featured_url: - featured_request = get_request(community.ap_featured_url, headers={'Accept': 'application/activityjson'}) + featured_request = get_request(community.ap_featured_url, headers={'Accept': 'application/activity+json'}) if featured_request.status_code == 200: featured_data = featured_request.json() featured_request.close()