aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/www/api
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-06-30 00:17:47 +0300
committerGravatar Vitaly Takmazov2022-06-30 00:17:47 +0300
commite340ea8366159610fd9d5b7590874b750a797126 (patch)
tree6183672127a5fa174c137e6d0180856f9671484d /src/main/java/com/juick/www/api
parentcde24cc1799740a55c172d3a15087e6b490f105e (diff)
ActivityPub: add missing Actor types
Diffstat (limited to 'src/main/java/com/juick/www/api')
-rw-r--r--src/main/java/com/juick/www/api/activity/model/Context.java7
-rw-r--r--src/main/java/com/juick/www/api/activity/model/objects/Group.java22
-rw-r--r--src/main/java/com/juick/www/api/activity/model/objects/Organization.java22
-rw-r--r--src/main/java/com/juick/www/api/activity/model/objects/Service.java22
4 files changed, 71 insertions, 2 deletions
diff --git a/src/main/java/com/juick/www/api/activity/model/Context.java b/src/main/java/com/juick/www/api/activity/model/Context.java
index 66259b7b..63f991cc 100644
--- a/src/main/java/com/juick/www/api/activity/model/Context.java
+++ b/src/main/java/com/juick/www/api/activity/model/Context.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2008-2020, Juick
+ * Copyright (C) 2008-2022, Juick
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
@@ -54,7 +54,10 @@ import java.util.Map;
@JsonSubTypes.Type(value = OrderedCollection.class, name = "OrderedCollection"),
@JsonSubTypes.Type(value = OrderedCollectionPage.class, name = "OrderedCollectionPage"),
@JsonSubTypes.Type(value = Person.class, name = "Person"),
- @JsonSubTypes.Type(value = Application.class, name = "Application")
+ @JsonSubTypes.Type(value = Application.class, name = "Application"),
+ @JsonSubTypes.Type(value = Service.class, name = "Service"),
+ @JsonSubTypes.Type(value = Group.class, name = "Group"),
+ @JsonSubTypes.Type(value = Organization.class, name = "Organization")
})
public class Context {
diff --git a/src/main/java/com/juick/www/api/activity/model/objects/Group.java b/src/main/java/com/juick/www/api/activity/model/objects/Group.java
new file mode 100644
index 00000000..c8470896
--- /dev/null
+++ b/src/main/java/com/juick/www/api/activity/model/objects/Group.java
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2008-2022, Juick
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+package com.juick.www.api.activity.model.objects;
+
+public class Group extends Actor {
+
+}
diff --git a/src/main/java/com/juick/www/api/activity/model/objects/Organization.java b/src/main/java/com/juick/www/api/activity/model/objects/Organization.java
new file mode 100644
index 00000000..d5d5c1eb
--- /dev/null
+++ b/src/main/java/com/juick/www/api/activity/model/objects/Organization.java
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2008-2022, Juick
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+package com.juick.www.api.activity.model.objects;
+
+public class Organization extends Actor {
+
+}
diff --git a/src/main/java/com/juick/www/api/activity/model/objects/Service.java b/src/main/java/com/juick/www/api/activity/model/objects/Service.java
new file mode 100644
index 00000000..cafbb3a9
--- /dev/null
+++ b/src/main/java/com/juick/www/api/activity/model/objects/Service.java
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2008-2022, Juick
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+package com.juick.www.api.activity.model.objects;
+
+public class Service extends Actor {
+
+}