From 9242d560b00df988b032ce2acbeea9caa669cde1 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Fri, 12 Dec 2025 01:26:28 +0000 Subject: [PATCH 1/2] apiService.getBloomsByHashtag(hashtag) was not waiting for the response --- front-end/views/hashtag.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front-end/views/hashtag.mjs b/front-end/views/hashtag.mjs index 7b7e996..bb00dce 100644 --- a/front-end/views/hashtag.mjs +++ b/front-end/views/hashtag.mjs @@ -14,10 +14,10 @@ import {createHeading} from "../components/heading.mjs"; // Hashtag view: show all tweets containing this tag -function hashtagView(hashtag) { +async function hashtagView(hashtag) { destroy(); - apiService.getBloomsByHashtag(hashtag); + await apiService.getBloomsByHashtag(hashtag); renderOne( state.isLoggedIn, From f4454ae1cbc77de3d4e7df6903b9787e6ee845f1 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Tue, 27 Jan 2026 00:30:47 +0000 Subject: [PATCH 2/2] added # to the link to disable using a path link --- front-end/components/bloom.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front-end/components/bloom.mjs b/front-end/components/bloom.mjs index 0b4166c..25e6d45 100644 --- a/front-end/components/bloom.mjs +++ b/front-end/components/bloom.mjs @@ -38,7 +38,7 @@ function _formatHashtags(text) { if (!text) return text; return text.replace( /\B#[^#]+/g, - (match) => `${match}` + (match) => `${match}` ); }