aboutsummaryrefslogtreecommitdiff
path: root/modules/fediverse/ap_utils.py
diff options
context:
space:
mode:
authorGravatar jesopo2020-01-18 14:02:29 +0000
committerGravatar jesopo2020-01-18 14:02:47 +0000
commita9741344720d43aab8860c3cdbd16521452400ca (patch)
treee44c9a60f921623eff9d1b41ee517669b5a3ee1b /modules/fediverse/ap_utils.py
parenttolerate fediverse Notes without "cc"s (diff)
tolerate fedi servers that present Notes as application/ld+json
Diffstat (limited to 'modules/fediverse/ap_utils.py')
-rw-r--r--modules/fediverse/ap_utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/fediverse/ap_utils.py b/modules/fediverse/ap_utils.py
index 016f2ec3..0d44d523 100644
--- a/modules/fediverse/ap_utils.py
+++ b/modules/fediverse/ap_utils.py
@@ -8,6 +8,8 @@ LD_TYPE = ("application/ld+json; "
JRD_TYPE = "application/jrd+json"
ACTIVITY_TYPE = "application/activity+json"
+AP_TYPES = [ACTIVITY_TYPE, "application/ld+json"]
+
def split_username(s):
if s[0] == "@":
s = s[1:]