summaryrefslogtreecommitdiffstats
path: root/activities
diff options
context:
space:
mode:
Diffstat (limited to 'activities')
-rw-r--r--activities/views/posts.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/activities/views/posts.py b/activities/views/posts.py
index b9bdc7f..e394c4e 100644
--- a/activities/views/posts.py
+++ b/activities/views/posts.py
@@ -75,7 +75,10 @@ class Individual(TemplateView):
# If this not a local post, redirect to its canonical URI
if not self.post_obj.local:
return redirect(self.post_obj.object_uri)
- return JsonResponse(canonicalise(self.post_obj.to_ap(), include_security=True))
+ return JsonResponse(
+ canonicalise(self.post_obj.to_ap(), include_security=True),
+ content_type="application/activity+json",
+ )
@method_decorator(identity_required, name="dispatch")