forked from mirrors/bookwyrm
Accept 'Accept' activities in the inbox
This commit is contained in:
parent
7123650198
commit
4f60d27c12
3 changed files with 6 additions and 2 deletions
|
@ -99,6 +99,10 @@ def shared_inbox(request):
|
|||
if activity['type'] == 'Create':
|
||||
return handle_incoming_create(activity)
|
||||
|
||||
if activity['type'] == 'Accept':
|
||||
# aww yay, friendship
|
||||
return HttpResponse()
|
||||
|
||||
return HttpResponseNotFound()
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Generated by Django 3.0.3 on 2020-02-12 01:47
|
||||
# Generated by Django 3.0.2 on 2020-02-14 16:08
|
||||
|
||||
from django.conf import settings
|
||||
import django.contrib.auth.models
|
||||
|
|
|
@ -14,7 +14,7 @@ SECRET_KEY = '7(2w1sedok=aznpq)ta1mc4i%4h=xx@hxwx*o57ctsuml0x%fr'
|
|||
DEBUG = True
|
||||
|
||||
# TODO: this should be populated at runtime at least for debug mode
|
||||
DOMAIN = 'af064ab4.ngrok.io'
|
||||
DOMAIN = '26863dc9.ngrok.io'
|
||||
ALLOWED_HOSTS = ['*']
|
||||
OL_URL = 'https://openlibrary.org'
|
||||
|
||||
|
|
Loading…
Reference in a new issue