forked from mirrors/bookwyrm
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
|
||||
local_id = absolute_id.split('/')[-1]
|
||||
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:
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in a new issue