-
-
Notifications
You must be signed in to change notification settings - Fork 401
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
Raise exception in UserTimelineController
if no user with the nickname provided
#11465
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good ... but i would change the condition to make it more clear
decidim-core/app/controllers/decidim/user_timeline_controller.rb
Outdated
Show resolved
Hide resolved
Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…ame provided (#11465) * Raise exception in timeline controller if no user with the nickname provided * Update decidim-core/app/controllers/decidim/user_timeline_controller.rb Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro> --------- Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro>
…he nickname provided' to v0.26 (#11470) * Raise exception in `UserTimelineController` if no user with the nickname provided (#11465) * Raise exception in timeline controller if no user with the nickname provided * Update decidim-core/app/controllers/decidim/user_timeline_controller.rb Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro> --------- Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro> * Fix spec --------- Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro>
Adding the |
🎩 What? Why?
Raise
ActionController::RoutingError
exception inUserTimelineController
if no user with the nickname provided📌 Related Issues
Testing
/profiles/non_existing_user_nickname/timeline
and see a 404 Not Found page shown.