mirror of https://gitlab.com/bashrc2/epicyon
Zero items
parent
4bf0ee92eb
commit
83ede4e43e
16
daemon.py
16
daemon.py
|
@ -8969,7 +8969,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
'votersCount': 'toot:votersCount'}],
|
||||
'id': httpPrefix + '://' + domainFull + path,
|
||||
'orderedItems': [],
|
||||
'totalItems': 1,
|
||||
'totalItems': 0,
|
||||
'type': 'OrderedCollection'
|
||||
}
|
||||
msg = json.dumps(featuredCollection,
|
||||
|
@ -8987,7 +8987,19 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
actor/collections/featuredTags
|
||||
TODO add ability to set a featured tags
|
||||
"""
|
||||
featuredTagsCollection = {}
|
||||
featuredTagsCollection = {
|
||||
'@context': ['https://www.w3.org/ns/activitystreams',
|
||||
{'atomUri': 'ostatus:atomUri',
|
||||
'conversation': 'ostatus:conversation',
|
||||
'inReplyToAtomUri': 'ostatus:inReplyToAtomUri',
|
||||
'sensitive': 'as:sensitive',
|
||||
'toot': 'http://joinmastodon.org/ns#',
|
||||
'votersCount': 'toot:votersCount'}],
|
||||
'id': httpPrefix + '://' + domainFull + path,
|
||||
'orderedItems': [],
|
||||
'totalItems': 0,
|
||||
'type': 'OrderedCollection'
|
||||
}
|
||||
msg = json.dumps(featuredTagsCollection,
|
||||
ensure_ascii=False).encode('utf-8')
|
||||
msglen = len(msg)
|
||||
|
|
Loading…
Reference in New Issue