mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-03 13:58:43 +00:00
Fixes status matching for subclasses
This commit is contained in:
parent
a47f573b2b
commit
3ddd4a0490
1 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,8 @@ def get_status(absolute_id):
|
||||||
# try finding a local status with that id
|
# try finding a local status with that id
|
||||||
local_id = absolute_id.split('/')[-1]
|
local_id = absolute_id.split('/')[-1]
|
||||||
try:
|
try:
|
||||||
possible_match = models.Status.objects.get(id=local_id)
|
possible_match = models.Status.objects.select_subclasses() \
|
||||||
|
.get(id=local_id)
|
||||||
except models.Status.DoesNotExist:
|
except models.Status.DoesNotExist:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue