summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorDarius Kazemi <darius.kazemi@gmail.com>2020-01-18 11:16:34 -0800
committerDarius Kazemi <darius.kazemi@gmail.com>2020-01-18 11:28:08 -0800
commitd51ed04584ada2682e203cce143f31ca6d0866bd (patch)
tree298f949a6b572abc3810a6304c769606fbf79ab8 /views
parent70982d89085c76f569b511c6245fb9a549d1825f (diff)
Adding Federation toggle
There is now a toggle in the `config/domain-example.js` file called `isFederated`. When set to `true`, ActivityPub functions as normal. When set to false, the ActivityPub functions all immediately return without doing anything, and AP routes return 404s.
Diffstat (limited to 'views')
-rwxr-xr-xviews/event.handlebars2
1 files changed, 2 insertions, 0 deletions
diff --git a/views/event.handlebars b/views/event.handlebars
index 6f9dae1..52a68bc 100755
--- a/views/event.handlebars
+++ b/views/event.handlebars
@@ -72,6 +72,7 @@
<i class="fas fa-copy"></i> Copy
</button>
</li>
+ {{#if isFederated}}
<li>
<span class="fa-li">
<i class="fas fa-fw fa-share-square"></i>
@@ -81,6 +82,7 @@
<i class="fas fa-copy"></i> Copy
</button>
</li>
+ {{/if}}
</ul>
</div>
</div>