fix: 500 error on posts archive

This commit is contained in:
vas3k 2023-10-09 11:27:47 +02:00
parent d51f92e4c2
commit 44ad5d7a20
1 changed files with 1 additions and 1 deletions

View File

@ -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}")