Allow authorless posts

This commit is contained in:
Tim Van Baak 2021-05-01 13:08:27 -07:00
parent 73263bed7d
commit fc28718846

View File

@ -561,7 +561,8 @@ class Post(ModelBase):
lexicon_id = Column(Integer, ForeignKey('lexicon.id'), nullable=False)
# The user who made the post
user_id = Column(Integer, ForeignKey('user.id'), nullable=False)
# This may be NULL if the post was made by Amanuensis
user_id = Column(Integer, ForeignKey('user.id'), nullable=True)
################
# Post content #