From 4616c62bcd899a76062c611b96b13833f782f51e Mon Sep 17 00:00:00 2001 From: rtkay123 Date: Sat, 19 Jul 2025 21:59:54 +0200 Subject: feat: sign request --- contrib/bruno/users/follow.bru | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 contrib/bruno/users/follow.bru (limited to 'contrib') diff --git a/contrib/bruno/users/follow.bru b/contrib/bruno/users/follow.bru new file mode 100644 index 0000000..89cf4e1 --- /dev/null +++ b/contrib/bruno/users/follow.bru @@ -0,0 +1,29 @@ +meta { + name: follow + type: http + seq: 3 +} + +post { + url: {{HUT_HOSTNAME}}/users/sellershut/inbox + body: none + auth: inherit +} + +headers { + Content-Type: application/activity+json +} + +script:pre-request { + const { nanoid } = require("nanoid") + + const hostname = bru.getEnvVar("HUT_HOSTNAME"); + + req.setBody({ + "@context": "https://www.w3.org/ns/activitystreams", + "id": `${hostname}/activity/follow/${nanoid()}`, + "type": "Follow", + "actor": `http://localhost/users/sellershut`, + "object": `http://localhost/users/sellershut` + }) +} -- cgit v1.2.3