1
0
Fork 0

Use variable instead of string

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
This commit is contained in:
André Jaenisch 2022-11-13 16:59:05 +01:00
parent dc14670a2c
commit 530d7de309
No known key found for this signature in database
GPG key ID: 5A668E771F1ED854
9 changed files with 27 additions and 27 deletions

View file

@ -14,7 +14,7 @@ from django.views import View
from django.views.decorators.csrf import csrf_exempt
from bookwyrm import activitypub, models
from bookwyrm.tasks import app
from bookwyrm.tasks import app, MEDIUM
from bookwyrm.signatures import Signature
from bookwyrm.utils import regex
@ -98,7 +98,7 @@ def raise_is_blocked_activity(activity_json):
raise PermissionDenied()
@app.task(queue="medium_priority")
@app.task(queue=MEDIUM)
def activity_task(activity_json):
"""do something with this json we think is legit"""
# lets see if the activitypub module can make sense of this json