Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't show the series as a link if the book has no author #2808

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

bpeel
Copy link
Contributor

@bpeel bpeel commented Apr 8, 2023

The series link needs an author so if it doesn't have one, instead of showing a server error let's just show the series details as plain text without a link.

Fixes: #2797

The series link needs an author so if it doesn't have one, instead of
showing a server error let's just show the series details as plain text
without a link.

Fixes: bookwyrm-social#2797
Copy link
Member

@WesleyAC WesleyAC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a little unfortunate to have separate if statements for the opening and closing tag, but I can't figure out a way to do it that would be much better than this — the thing that comes to mind is making a variable for the title of the book with the series number, but Django's with tag is seriously annoying to use, and concatenation of strings with it is tricky, so this seems fine as is.

Thanks for fixing this!

@WesleyAC WesleyAC merged commit 843147e into bookwyrm-social:main Apr 11, 2023
@bpeel bpeel deleted the series-no-author branch May 15, 2023 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The book page shows a server error if the book has a series but no author
2 participants