diff options
author | 2018-09-05 22:46:23 +0300 | |
---|---|---|
committer | 2018-09-05 22:46:23 +0300 | |
commit | 3ad367ca8a9a11c026938459f7b852f6391bd341 (patch) | |
tree | 263f1309e83c5dc5cd9b7e5cc97459f936d6895d /juick-server/src/main/java/com/juick/server/api/activity/model/ActivityObject.java | |
parent | 302200828e48932dba38dc36fd41dd23fb6dfc76 (diff) |
KeystoreManager shares keystore between XMPP and ActivityPub
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/api/activity/model/ActivityObject.java')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/api/activity/model/ActivityObject.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/juick-server/src/main/java/com/juick/server/api/activity/model/ActivityObject.java b/juick-server/src/main/java/com/juick/server/api/activity/model/ActivityObject.java index 7859be86..84a3e018 100644 --- a/juick-server/src/main/java/com/juick/server/api/activity/model/ActivityObject.java +++ b/juick-server/src/main/java/com/juick/server/api/activity/model/ActivityObject.java @@ -3,6 +3,9 @@ package com.juick.server.api.activity.model; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.Instant; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; public abstract class ActivityObject { @@ -23,11 +26,12 @@ public abstract class ActivityObject { } @JsonProperty("@context") - public String getContext() { - return CONTEXT_URI; + public List<String> getContext() { + return Arrays.asList(ACTIVITY_STREAMS_URI, SECURITY_URI); } - public final static String CONTEXT_URI = "https://www.w3.org/ns/activitystreams"; + public final static String ACTIVITY_STREAMS_URI = "https://www.w3.org/ns/activitystreams"; + public final static String SECURITY_URI = "https://w3id.org/security/v1"; public final static String LD_JSON_MEDIA_TYPE = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\""; public final static String ACTIVITY_JSON_MEDIA_TYPE = "application/activity+json; profile=\"https://www.w3.org/ns/activitystreams\""; |