forked from mirrors/bookwyrm
Merge pull request #1773 from bookwyrm-social/load-generatednote-status-type
Loads subclass for generated note
This commit is contained in:
commit
cf6e101e55
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue