Produces a map representing an ActivityPub activity which can be serialized directly to JSON in the form expected by the ActivityStreams 2.0 spec. See https://www.w3.org/TR/activitystreams-vocabulary/ for reference.
Produces a map representing an ActivityPub object which can be serialized directly to JSON in the form expected by the ActivityStreams 2.0 spec. See https://www.w3.org/TR/activitystreams-vocabulary/ for reference.
copied from Jahfer’s clj-activitypub library. If and when Jahfer issues a release of that library, this directory will be deleted and a dependency on that library will be added to the project.
activity
multimethod
Produces a map representing an ActivityPub activity which can be serialized directly to JSON in the form expected by the ActivityStreams 2.0 spec. See https://www.w3.org/TR/activitystreams-vocabulary/ for reference.
Produces a map representing an ActivityPub object which can be serialized directly to JSON in the form expected by the ActivityStreams 2.0 spec. See https://www.w3.org/TR/activitystreams-vocabulary/ for reference.
\ No newline at end of file
diff --git a/docs/codox/clj-activitypub.internal.crypto.html b/docs/codox/clj-activitypub.internal.crypto.html
index 89605eb..ca50280 100644
--- a/docs/codox/clj-activitypub.internal.crypto.html
+++ b/docs/codox/clj-activitypub.internal.crypto.html
@@ -1,3 +1,3 @@
-clj-activitypub.internal.crypto documentation
copied from Jahfer’s clj-activitypub library. If and when Jahfer issues a release of that library, this directory will be deleted and a dependency on that library will be added to the project.
\ No newline at end of file
diff --git a/docs/codox/clj-activitypub.internal.http-util.html b/docs/codox/clj-activitypub.internal.http-util.html
index 2726e1a..b6afb96 100644
--- a/docs/codox/clj-activitypub.internal.http-util.html
+++ b/docs/codox/clj-activitypub.internal.http-util.html
@@ -1,3 +1,3 @@
-clj-activitypub.internal.http-util documentation
copied from Jahfer’s clj-activitypub library. If and when Jahfer issues a release of that library, this directory will be deleted and a dependency on that library will be added to the project.
\ No newline at end of file
diff --git a/docs/codox/clj-activitypub.internal.thread-cache.html b/docs/codox/clj-activitypub.internal.thread-cache.html
index 627ef04..ad0a146 100644
--- a/docs/codox/clj-activitypub.internal.thread-cache.html
+++ b/docs/codox/clj-activitypub.internal.thread-cache.html
@@ -1,3 +1,3 @@
-clj-activitypub.internal.thread-cache documentation
copied from Jahfer’s clj-activitypub library. If and when Jahfer issues a release of that library, this directory will be deleted and a dependency on that library will be added to the project.
\ No newline at end of file
diff --git a/docs/codox/clj-activitypub.webfinger.html b/docs/codox/clj-activitypub.webfinger.html
index bebfcf9..68fb97c 100644
--- a/docs/codox/clj-activitypub.webfinger.html
+++ b/docs/codox/clj-activitypub.webfinger.html
@@ -1,3 +1,3 @@
-clj-activitypub.webfinger documentation
copied from Jahfer’s clj-activitypub library. If and when Jahfer issues a release of that library, this directory will be deleted and a dependency on that library will be added to the project.
fetch-user-id
(fetch-user-id domain username)
Follows the webfinger request to a remote domain, retrieving the ID of the requested account. Typically returns a string in the form of a URL.
\ No newline at end of file
diff --git a/docs/codox/dog-and-duck.quack.quack.html b/docs/codox/dog-and-duck.quack.quack.html
index 3382dad..602dabd 100644
--- a/docs/codox/dog-and-duck.quack.quack.html
+++ b/docs/codox/dog-and-duck.quack.quack.html
@@ -1,14 +1,20 @@
-dog-and-duck.quack.quack documentation
Actor objects MUST have, in addition to the properties mandated by 3.1 Object Identifiers, the following properties:
+
inbox A reference to an [ActivityStreams] OrderedCollection comprised of all the messages received by the actor; see 5.2 Inbox. outbox An [ActivityStreams] OrderedCollection comprised of all the messages produced by the actor; see 5.1 Outbox.
All properties are optional (including the id and type)
-
But we are just not having that, because otherwise we’re flying blind. We shall reject objects lacking at least :type. Missing :id keys are tolerable because they represent transient objects, which we expect to handle.
But we are just not having that, because otherwise we’re flying blind. We shall reject objects lacking at least :type. Missing :id keys are tolerable because they represent transient objects, which we expect to handle.
\ No newline at end of file
diff --git a/docs/codox/index.html b/docs/codox/index.html
index f194bc9..b31eb48 100644
--- a/docs/codox/index.html
+++ b/docs/codox/index.html
@@ -1,3 +1,3 @@
-Dog-and-duck 0.1.0-SNAPSHOT
copied from Jahfer’s clj-activitypub library. If and when Jahfer issues a release of that library, this directory will be deleted and a dependency on that library will be added to the project.
copied from Jahfer’s clj-activitypub library. If and when Jahfer issues a release of that library, this directory will be deleted and a dependency on that library will be added to the project.
copied from Jahfer’s clj-activitypub library. If and when Jahfer issues a release of that library, this directory will be deleted and a dependency on that library will be added to the project.
copied from Jahfer’s clj-activitypub library. If and when Jahfer issues a release of that library, this directory will be deleted and a dependency on that library will be added to the project.
copied from Jahfer’s clj-activitypub library. If and when Jahfer issues a release of that library, this directory will be deleted and a dependency on that library will be added to the project.
\ No newline at end of file
diff --git a/src/clj_activitypub/core.clj b/src/clj_activitypub/core.clj
index 9719bc0..9385002 100644
--- a/src/clj_activitypub/core.clj
+++ b/src/clj_activitypub/core.clj
@@ -1,4 +1,7 @@
(ns clj-activitypub.core
+ "copied from [Jahfer's clj-activitypub library](https://github.com/jahfer/clj-activitypub).
+ If and when Jahfer issues a release of that library, this directory will be deleted and a
+ dependency on that library will be added to the project."
(:require [clj-activitypub.internal.crypto :as crypto]
[clj-activitypub.internal.thread-cache :as thread-cache]
[clj-activitypub.internal.http-util :as http]
diff --git a/src/clj_activitypub/webfinger.clj b/src/clj_activitypub/webfinger.clj
index 6173fb3..c9aa700 100644
--- a/src/clj_activitypub/webfinger.clj
+++ b/src/clj_activitypub/webfinger.clj
@@ -1,4 +1,7 @@
(ns clj-activitypub.webfinger
+ "copied from [Jahfer's clj-activitypub library](https://github.com/jahfer/clj-activitypub).
+ If and when Jahfer issues a release of that library, this directory will be deleted and a
+ dependency on that library will be added to the project."
(:require [clj-http.client :as client]
[clj-activitypub.internal.http-util :as http]
[clj-activitypub.internal.thread-cache :as thread-cache]))
diff --git a/src/dog_and_duck/quack/quack.clj b/src/dog_and_duck/quack/quack.clj
index 7ba0ed6..ab3a432 100644
--- a/src/dog_and_duck/quack/quack.clj
+++ b/src/dog_and_duck/quack/quack.clj
@@ -112,7 +112,19 @@
true))
(defn activity?
- "`true` iff `x` quacks like an activity, else false."
+ "`true` iff `x` quacks like an activity, else false.
+
+ **NOTE THAT** [Section 4.1 of the spec]
+ (https://www.w3.org/TR/activitypub/#actor-objects) says explicitly that
+
+ > Actor objects MUST have, in addition to the properties mandated by 3.1 Object Identifiers, the following properties:
+ >
+ > inbox
+ > A reference to an [ActivityStreams] OrderedCollection comprised of all the messages received by the actor; see 5.2 Inbox.
+ > outbox
+ > An [ActivityStreams] OrderedCollection comprised of all the messages produced by the actor; see 5.1 Outbox.
+
+ However, none of the provided examples in the [activitystreams-test-documents repository]() does in fact have these properties"
[x]
(try
(and (object? x)
diff --git a/src/dog_and_duck/scratch/parser.clj b/src/dog_and_duck/scratch/parser.clj
index 21cd197..81f2832 100644
--- a/src/dog_and_duck/scratch/parser.clj
+++ b/src/dog_and_duck/scratch/parser.clj
@@ -43,3 +43,5 @@
(count objects)
(map :type objects))))
(file-seq (file "resources/activitystreams-test-documents")))
+
+(-> "resources/activitystreams-test-documents/simple0020.json" slurp clean first :actor)
\ No newline at end of file
diff --git a/src/dog_and_duck/scratch/scratch.clj b/src/dog_and_duck/scratch/scratch.clj
index f5fe9ae..f4319d1 100644
--- a/src/dog_and_duck/scratch/scratch.clj
+++ b/src/dog_and_duck/scratch/scratch.clj
@@ -57,4 +57,5 @@
private (-> kp .getPrivateKey .getPrivateKeyDataPacket .getEncoded)]
(println (str "Public key: " public))
(println (str "Private key: " private))
- )
\ No newline at end of file
+ )
+