Skip to content

itd2025|Zhenishay Zhanybek|oct2025-2| ModuleLegacy - #1

Open
Jenishai5 wants to merge 1 commit into
mainfrom
solution
Open

itd2025|Zhenishay Zhanybek|oct2025-2| ModuleLegacy#1
Jenishai5 wants to merge 1 commit into
mainfrom
solution

Conversation

@Jenishai5

Copy link
Copy Markdown
Owner

Bugs fixed:

Login from profile page (CodeYourFuture#6): views/profile.mjs and views/hashtag.mjs were binding the login handler to a nonexistent click target instead of the form's submit event — so the login form silently fell back to a native HTML form submission (POST to the page itself), which a static file server can't handle, hence the 501. Now wired correctly.
Extra-long blooms (CodeYourFuture#4): backend had no length check on posted content. Added a 280-char server-side validation in send_bloom, and trimmed the one seed bloom that exceeded it.
Hashtag link bug (CodeYourFuture#5): the hashtag-linking regex (\B#[^#]+) greedily consumed everything to the end of the bloom instead of stopping at the word boundary. Fixed to \B#\w+.
Hashtag page flashing (CodeYourFuture#3): hashtagView fetched data unconditionally on every render, and since fetches trigger a state change that re-runs the view, it looped infinitely. Added a guard so it only re-fetches when the hashtag actually changes.

Features added:

Unfollow (CodeYourFuture#8): new /unfollow/ backend endpoint + unfollow() in data/follows.py; profile's Follow button now toggles to "Unfollow" when already following.
Rebloom (CodeYourFuture#9): new reblooms table, backend endpoint (/rebloom), and feed logic that merges original posts with reblooms (sorted by whichever happened more recently), tagging each with rebloom count and "Rebloomed by X". Frontend has a Rebloom button + count on every bloom.

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.

1 participant