Merge pull request #1773 from bookwyrm-social/load-generatednote-status-type

Loads subclass for generated note
This commit is contained in:
Mouse Reeve 2022-01-06 11:41:30 -08:00 committed by GitHub
commit cf6e101e55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,6 +63,8 @@ def load_subclass(status):
return status.review
if hasattr(status, "comment"):
return status.comment
if hasattr(status, "generatednote"):
return status.generatednote
return status