summaryrefslogtreecommitdiff
path: root/activitypub.js
diff options
context:
space:
mode:
authorDarius Kazemi <darius.kazemi@gmail.com>2020-01-20 18:31:17 -0800
committerDarius Kazemi <darius.kazemi@gmail.com>2020-01-20 18:31:17 -0800
commitfc42ff1944a60225e4f111e1ebb1175f0e82f604 (patch)
tree599d2170a0a43953c12492817fdb088a2cc102de /activitypub.js
parentd51ed04584ada2682e203cce143f31ca6d0866bd (diff)
changing federation toggle
Diffstat (limited to 'activitypub.js')
-rw-r--r--activitypub.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/activitypub.js b/activitypub.js
index f49648b..1a67639 100644
--- a/activitypub.js
+++ b/activitypub.js
@@ -13,7 +13,6 @@ const EventGroup = mongoose.model('EventGroup');
var sanitizeHtml = require('sanitize-html');
function createActivityPubActor(eventID, domain, pubkey, description, name, location, imageFilename, startUTC, endUTC, timezone) {
- if (!isFederated) return {};
let actor = {
'@context': [
'https://www.w3.org/ns/activitystreams',
@@ -55,7 +54,6 @@ function createActivityPubActor(eventID, domain, pubkey, description, name, loca
}
function createActivityPubEvent(name, startUTC, endUTC, timezone, description, location) {
- if (!isFederated) return {};
const guid = crypto.randomBytes(16).toString('hex');
let eventObject = {
"@context": "https://www.w3.org/ns/activitystreams",
@@ -84,7 +82,6 @@ function createFeaturedPost(eventID, name, startUTC, endUTC, timezone, descripti
}
function updateActivityPubEvent(oldEvent, name, startUTC, endUTC, timezone, description, location) {
- if (!isFederated) return;
// we want to persist the old ID no matter what happens to the Event itself
const id = oldEvent.id;
let eventObject = {
@@ -102,7 +99,6 @@ function updateActivityPubEvent(oldEvent, name, startUTC, endUTC, timezone, desc
function updateActivityPubActor(actor, description, name, location, imageFilename, startUTC, endUTC, timezone) {
- if (!isFederated) return;
if (!actor) return;
actor.summary = `<p>${description}</p>`;
actor.name = name;