From 49758f2383a675ebedac29fd21e8d43b2d13751d Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Mon, 10 Apr 2023 17:50:25 +1000 Subject: [PATCH] formatting fixes --- bookwyrm/activitypub/__init__.py | 2 +- bookwyrm/views/inbox.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bookwyrm/activitypub/__init__.py b/bookwyrm/activitypub/__init__.py index 8449b4f50..05ca44476 100644 --- a/bookwyrm/activitypub/__init__.py +++ b/bookwyrm/activitypub/__init__.py @@ -4,7 +4,7 @@ import sys from .base_activity import ActivityEncoder, Signature, naive_parse from .base_activity import Link, Mention, Hashtag -from .base_activity import ActivitySerializerError, resolve_remote_id, get_activitypub_data +from .base_activity import ActivitySerializerError, resolve_remote_id from .image import Document, Image from .note import Note, GeneratedNote, Article, Comment, Quotation from .note import Review, Rating diff --git a/bookwyrm/views/inbox.py b/bookwyrm/views/inbox.py index 867b2b971..da32ebdb0 100644 --- a/bookwyrm/views/inbox.py +++ b/bookwyrm/views/inbox.py @@ -130,7 +130,9 @@ def has_valid_signature(request, activity): """verify incoming signature""" try: signature = Signature.parse(request) - remote_user = activitypub.resolve_remote_id(activity.get("actor"), model=models.User) + remote_user = activitypub.resolve_remote_id( + activity.get("actor"), model=models.User + ) if not remote_user: return False