fix: 500 error on posts archive
This commit is contained in:
parent
d51f92e4c2
commit
44ad5d7a20
|
@ -72,7 +72,7 @@ def dump_user_profile(user_dir, user):
|
|||
|
||||
|
||||
def dump_user_posts(user_dir, user):
|
||||
posts = Post.objects.filter(author=user).select_related("author", "topic")
|
||||
posts = Post.objects.filter(author=user).select_related("author", "room")
|
||||
|
||||
for post in posts:
|
||||
post_dir = os.path.join(user_dir, f"posts/{post.slug}")
|
||||
|
|
Loading…
Reference in New Issue