component AP gateway: return item when item URL is used:
a request on an `item` type URL will return the suitable cached item. rel 370
This commit is contained in:
parent
7bd01dd06c
commit
f4af47a929
1 changed files with 8 additions and 3 deletions
|
|
@ -30,7 +30,8 @@ TYPE_ITEM = "item"
|
|||
TYPE_TOMBSTONE = "Tombstone"
|
||||
TYPE_MENTION = "Mention"
|
||||
MEDIA_TYPE_AP = "application/activity+json"
|
||||
NS_AP_PUBLIC = "https://www.w3.org/ns/activitystreams#Public"
|
||||
NS_AP = "https://www.w3.org/ns/activitystreams"
|
||||
NS_AP_PUBLIC = f"{NS_AP}#Public"
|
||||
# 3 values can be used, see https://www.w3.org/TR/activitypub/#public-addressing
|
||||
PUBLIC_TUPLE = (NS_AP_PUBLIC, "as:Public", "Public")
|
||||
AP_REQUEST_TYPES = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue