followersOf actor

main
Bob Mottram 2025-03-31 11:45:50 +01:00
parent b99876a2ed
commit b0a3a86510
1 changed files with 3 additions and 2 deletions

View File

@ -95,8 +95,8 @@ def _get_followers_sync_json(base_dir: str,
_get_followers_for_domain(base_dir, _get_followers_for_domain(base_dir,
nickname, domain, nickname, domain,
search_domain) search_domain)
id_str = http_prefix + '://' + domain_full + \ actor = http_prefix + '://' + domain_full + '/users/' + nickname
'/users/' + nickname + '/followers?domain=' + search_domain id_str = actor + '/followers?domain=' + search_domain
sync_json = { sync_json = {
"@context": [ "@context": [
'https://www.w3.org/ns/activitystreams', 'https://www.w3.org/ns/activitystreams',
@ -104,6 +104,7 @@ def _get_followers_sync_json(base_dir: str,
], ],
'id': id_str, 'id': id_str,
'orderedItems': sync_list, 'orderedItems': sync_list,
'followersOf': actor,
'type': 'OrderedCollection' 'type': 'OrderedCollection'
} }
return sync_json return sync_json