Merged UI and backend
This commit is contained in:
@@ -144,8 +144,11 @@ class MongoUserDao:
|
||||
|
||||
def get_user_posts(self, _id):
|
||||
user = self.get_by_id(_id)
|
||||
if user is not None:
|
||||
if 'posts' in user:
|
||||
return user['posts']
|
||||
else:
|
||||
return None
|
||||
else:
|
||||
return []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user