summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipe Medeiros <hello@filipesm.eu>2025-05-12 14:07:02 +0200
committerGitHub <noreply@github.com>2025-05-12 14:07:02 +0200
commit6f0b7a44b995b6b66baf42a9369182fc05a90b34 (patch)
tree37127d6b565a95e8c4e540c9a6b9b9dd6f3dfd87
parent165fd92e05779de7733e84e8964f46c48bb3e691 (diff)
Add User Agent to activitypub.js
-rw-r--r--src/activitypub.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/activitypub.js b/src/activitypub.js
index d568231..dd7c7f7 100644
--- a/src/activitypub.js
+++ b/src/activitypub.js
@@ -222,6 +222,7 @@ export function signAndSend(message, eventID, targetDomain, inbox, callback) {
Digest: `SHA-256=${digest}`,
"Content-Type": activityPubContentType,
Accept: activityPubContentType,
+ "User-Agent": `Gathio - ${domain}`,
},
method: "POST",
json: true,
@@ -669,6 +670,7 @@ function _handleFollow(req, res) {
headers: {
Accept: activityPubContentType,
"Content-Type": activityPubContentType,
+ "User-Agent": `Gathio - ${domain}`,
},
},
function (error, response, body) {
@@ -905,6 +907,7 @@ function _handleAcceptEvent(req, res) {
headers: {
Accept: activityPubContentType,
"Content-Type": activityPubContentType,
+ "User-Agent": `Gathio - ${domain}`,
},
},
function (error, response, body) {
@@ -1126,6 +1129,7 @@ function _handleCreateNoteComment(req, res) {
headers: {
Accept: activityPubContentType,
"Content-Type": activityPubContentType,
+ "User-Agent": `Gathio - ${domain}`,
},
},
function (error, response, actor) {