···139139 // Get the <p> that contains a lot of hashtags, add a class to it
140140 const hashtagStuffedParagraph = Array.from(dom.querySelectorAll('p')).find(
141141 (p) => {
142142+ let hashtagCount = 0;
142143 for (let i = 0; i < p.childNodes.length; i++) {
143144 const node = p.childNodes[i];
144145···151152 const linkText = node.textContent.trim();
152153 if (!linkText || !linkText.startsWith('#')) {
153154 return false;
155155+ } else {
156156+ hashtagCount++;
154157 }
155158 } else {
156159 return false;
157160 }
158161 }
159159- return true;
162162+ // Only consider "stuffing" if there are more than 3 hashtags
163163+ return hashtagCount > 3;
160164 },
161165 );
162166 if (hashtagStuffedParagraph) {