mirror of https://gitlab.com/bashrc2/epicyon
followingOf on inactive collection
parent
6fe0de61a1
commit
980ae88afb
|
@ -428,12 +428,10 @@ def get_inactive_feed(base_dir: str, domain: str, port: int, path: str,
|
||||||
dormant_months,
|
dormant_months,
|
||||||
sites_unavailable)
|
sites_unavailable)
|
||||||
|
|
||||||
|
actor = local_actor_url(http_prefix, nickname, domain)
|
||||||
if header_only:
|
if header_only:
|
||||||
first_str = \
|
first_str = actor + '/moved?page=1'
|
||||||
local_actor_url(http_prefix, nickname, domain) + \
|
id_str = actor + '/inactive'
|
||||||
'/moved?page=1'
|
|
||||||
id_str = \
|
|
||||||
local_actor_url(http_prefix, nickname, domain) + '/inactive'
|
|
||||||
total_str = str(len(lines))
|
total_str = str(len(lines))
|
||||||
following = {
|
following = {
|
||||||
"@context": [
|
"@context": [
|
||||||
|
@ -442,6 +440,7 @@ def get_inactive_feed(base_dir: str, domain: str, port: int, path: str,
|
||||||
],
|
],
|
||||||
'first': first_str,
|
'first': first_str,
|
||||||
'id': id_str,
|
'id': id_str,
|
||||||
|
'followingOf': actor,
|
||||||
'orderedItems': [],
|
'orderedItems': [],
|
||||||
'totalItems': total_str,
|
'totalItems': total_str,
|
||||||
'type': 'OrderedCollection'
|
'type': 'OrderedCollection'
|
||||||
|
@ -452,11 +451,8 @@ def get_inactive_feed(base_dir: str, domain: str, port: int, path: str,
|
||||||
page_number = 1
|
page_number = 1
|
||||||
|
|
||||||
next_page_number = int(page_number + 1)
|
next_page_number = int(page_number + 1)
|
||||||
id_str = \
|
id_str = actor + '/inactive?page=' + str(page_number)
|
||||||
local_actor_url(http_prefix, nickname, domain) + \
|
part_of_str = actor + '/inactive'
|
||||||
'/inactive?page=' + str(page_number)
|
|
||||||
part_of_str = \
|
|
||||||
local_actor_url(http_prefix, nickname, domain) + '/inactive'
|
|
||||||
following = {
|
following = {
|
||||||
"@context": [
|
"@context": [
|
||||||
'https://www.w3.org/ns/activitystreams',
|
'https://www.w3.org/ns/activitystreams',
|
||||||
|
@ -465,6 +461,7 @@ def get_inactive_feed(base_dir: str, domain: str, port: int, path: str,
|
||||||
'id': id_str,
|
'id': id_str,
|
||||||
'orderedItems': [],
|
'orderedItems': [],
|
||||||
'partOf': part_of_str,
|
'partOf': part_of_str,
|
||||||
|
'followingOf': actor,
|
||||||
'totalItems': 0,
|
'totalItems': 0,
|
||||||
'type': 'OrderedCollectionPage'
|
'type': 'OrderedCollectionPage'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue