mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
correct Accept header
This commit is contained in:
parent
8a6f3fff61
commit
ab60bc753b
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue