forked from mirrors/bookwyrm
Fixes boosted remote statuses coming in as Notes
This commit is contained in:
parent
2e245f84be
commit
a39cd670ef
2 changed files with 4 additions and 3 deletions
|
@ -265,7 +265,8 @@ def resolve_remote_id(
|
||||||
"Could not connect to host for remote_id in: %s" % (remote_id)
|
"Could not connect to host for remote_id in: %s" % (remote_id)
|
||||||
)
|
)
|
||||||
# determine the model implicitly, if not provided
|
# determine the model implicitly, if not provided
|
||||||
if not model:
|
# or if it's a model with subclasses like Status, check again
|
||||||
|
if not model or hasattr(model.objects, "select_subclasses"):
|
||||||
model = get_model_from_type(data.get("type"))
|
model = get_model_from_type(data.get("type"))
|
||||||
|
|
||||||
# check for existing items with shared unique identifiers
|
# check for existing items with shared unique identifiers
|
||||||
|
|
|
@ -608,8 +608,8 @@ class Inbox(TestCase):
|
||||||
"summary": "",
|
"summary": "",
|
||||||
"tag": [],
|
"tag": [],
|
||||||
"sensitive": False,
|
"sensitive": False,
|
||||||
"@context": "https://www.w3.org/ns/activitystreams"
|
"@context": "https://www.w3.org/ns/activitystreams",
|
||||||
}
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
with patch("bookwyrm.models.status.Status.ignore_activity") as discarder:
|
with patch("bookwyrm.models.status.Status.ignore_activity") as discarder:
|
||||||
|
|
Loading…
Reference in a new issue