check community.ap_outbox_url

This commit is contained in:
rimu 2024-11-30 14:22:48 +13:00
parent 19bd90475a
commit 7a7a1fe0d4

View file

@ -170,7 +170,7 @@ def retrieve_mods_and_backfill(community_id: int):
return
# download 50 old posts
if community.ap_public_url:
if community.ap_outbox_url:
outbox_request = get_request(community.ap_outbox_url, headers={'Accept': 'application/activity+json'})
if outbox_request.status_code == 200:
outbox_data = outbox_request.json()