-
-
Notifications
You must be signed in to change notification settings - Fork 21
London | 25-SDC-July | Mikiyas Gebremichael | Sprint 1 | New Feature - Follow/Unfollow #60
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
base: main
Are you sure you want to change the base?
London | 25-SDC-July | Mikiyas Gebremichael | Sprint 1 | New Feature - Follow/Unfollow #60
Conversation
Bug Report: Can't log in from profile page 🔗 Steps to reproduce: Load site with sample data populated. Log in as sample / sosecret Click on a username (e.g. AS) in a bloom shown in the timeline Click logout Log in as sample / sosecret Expect to see: A logged in view of AS’s profile, with a “Logout” button in the top-right. Actually see: A 501 error page saying “Server does not support this operation.” :gear: bug DONE now
…characters! But AS has a bloom which is longer than that! Not fair! => This bug is fixed now
… link doesn't work correctly, When loading the populated data, the user Swiz’s second bloom (which reads “Let’s get some #SwizBiz love!!”) has weird hashtag links. If you click the word “#SwizBiz” it takes you to an empty page which doesn’t show any blooms. I would expect at least the bloom I clicked the link in to be shown, and also perhaps any others containing the hashtag. On the other hand, in their other bloom (“New album dropping at midnight! Pre-save now! #SwizBiz”), clicking on “#SwizBiz” does take you to exactly what I expect - a page showing blooms containing #SwizBiz including the one I clicked from.
…n for checking if the current hashtag is there we dont need to fetch its own data. makes sense
illicitonion
left a comment
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.
There seems to be quite a lot of unrelated changes in this PR? Please can you remove them so this PR only does one thing?
| #Extract content safely | ||
| content = request.json.get("content", "") | ||
| # Limit content length | ||
| MAX_BLOOM_LENGTH = 280 | ||
| if len(content) > MAX_BLOOM_LENGTH: | ||
| return make_response( | ||
| { | ||
| "success": False, | ||
| "message": f"Bloom cannot exceed {MAX_BLOOM_LENGTH} characters", | ||
| }, | ||
| 400, | ||
| ) | ||
|
|
||
| blooms.add_bloom(sender=user, content=request.json["content"]) | ||
| blooms.add_bloom(sender=user, content=content) |
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.
This change seems unrelated to the PR? Can you revert it?
Learners, PR Template
Self checklist
Changelist
This PR is done for the new feature implementation -Follow/ Unfollow button
Questions
No question