Skip to content

Fix the legacy-code hashtag solution so the request loop stops - #2035

Open
fab-c14 wants to merge 1 commit into
CodeYourFuture:mainfrom
fab-c14:fix-legacy-hashtag-solution
Open

fab-c14 wants to merge 1 commit into
CodeYourFuture:mainfrom
fab-c14:fix-legacy-hashtag-solution

Conversation

@fab-c14

@fab-c14 fab-c14 commented Oct 19, 2026

Copy link
Copy Markdown

What does this change?

The legacy-code prep solution for the hashtag loop compared hashtag with state.currentHashtag. In Module-Legacy-Code, the router passes the tag without a #, and getBloomsByHashtag stores currentHashtag as # plus the tag. Those two strings never match, so the published check stays true and the requests never stop.

This uses the correction described by @RaihanSharif in #2032, and adds one sentence so a trainee can see why the # has to be on both sides.

Common Content?

  • Block/s: module/legacy/fixing

Checklist

  • I have read the contributing guidelines
  • I have checked my spelling and grammar
  • I have previewed the markdown
  • I checked the snippet against Module-Legacy-Code router.mjs and api.mjs
  • My changes follow the style guide

Who needs to know about this?

@RaihanSharif reported this and described the fix. @illicitonion

The published check compared a bare tag with currentHashtag, which is stored with a leading hash, so the condition never became false.

Co-authored-by: Cursor <cursoragent@cursor.com>
@netlify

netlify Bot commented Oct 19, 2026

Copy link
Copy Markdown

👷 Deploy request for cyf-curriculum pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 581feaa

@github-project-automation github-project-automation Bot moved this to 📋 Backlog in Curriculum Planning Oct 19, 2026
@netlify

netlify Bot commented Oct 19, 2026

Copy link
Copy Markdown

👷 Deploy request for cyf-common pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 581feaa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📋 Backlog

Development

Successfully merging this pull request may close these issues.

1 participant