From 3ddd4a0490dc7ee0069fbe1e145cd0872a71c7fd Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 10 Mar 2020 12:16:21 -0700 Subject: [PATCH] Fixes status matching for subclasses --- fedireads/status.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fedireads/status.py b/fedireads/status.py index 8e2615783..51a5cc164 100644 --- a/fedireads/status.py +++ b/fedireads/status.py @@ -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