summaryrefslogtreecommitdiffstats
path: root/activities
diff options
context:
space:
mode:
authorPaolo Melchiorre2022-12-05 22:44:50 +0100
committerGitHub2022-12-05 14:44:50 -0700
commit22e25ac454b52686685d4d9f1241416cd35fafda (patch)
tree6796235a63e5e9dd549f29a640bbb2e6c0de17a0 /activities
parente3f1039a5f976af1c9874e79bcaac396b7b8b4f2 (diff)
downloadtakahe-22e25ac454b52686685d4d9f1241416cd35fafda.tar.gz
takahe-22e25ac454b52686685d4d9f1241416cd35fafda.tar.bz2
takahe-22e25ac454b52686685d4d9f1241416cd35fafda.zip
Add django-upgrade to pre-commit (#114)
Diffstat (limited to 'activities')
-rw-r--r--activities/views/posts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/activities/views/posts.py b/activities/views/posts.py
index 60873a7..65b324a 100644
--- a/activities/views/posts.py
+++ b/activities/views/posts.py
@@ -21,7 +21,7 @@ class Individual(TemplateView):
self.identity = by_handle_or_404(self.request, handle, local=False)
self.post_obj = get_object_or_404(self.identity.posts, pk=post_id)
# If they're coming in looking for JSON, they want the actor
- accept = request.META.get("HTTP_ACCEPT", "text/html").lower()
+ accept = request.headers.get("accept", "text/html").lower()
if (
"application/json" in accept
or "application/ld" in accept