From fc42ff1944a60225e4f111e1ebb1175f0e82f604 Mon Sep 17 00:00:00 2001 From: Darius Kazemi Date: Mon, 20 Jan 2020 18:31:17 -0800 Subject: changing federation toggle --- activitypub.js | 4 ---- 1 file changed, 4 deletions(-) (limited to 'activitypub.js') 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 = `

${description}

`; actor.name = name; -- cgit v1.2.3