10

Recently, stackoverflow.com (and some other sites) stopped showing summary bar for new questions.

A little research reveals that this happens when list of user-ignored tags is empty. If there is at least one ignored tag, then everything works fine. Something wrong with regex for an empty list.

"7 questions with new activity" update shown

To reproduce this issue, the "Hide questions in your ignored tags" option should be selected. Sites with these settings behave as described above.

When I was debugging code with chrome devtools I came across this script with the isIgnored method which tests watched tags against regex (?:) (and always returns true) on sites with "Hide questions in your ignored tags" selected and an empty "ignored tags" list.

isIgnored: function(e) {
  if (!k()) // <<<---------------
      return !1;
  var n = t(".js-ignored-tag-list .post-tag")
    , s = p(n, !0).split(/,(?!\s)/).map((e=>{
      const t = /^\[class\*=' t-(.+?)'\]$/
        , n = /^:regex\(class, t-(.+?)\)$/;
      let s;
      return s = t.test(e) ? e.match(t)[1] + ".*" : n.test(e) ? e.match(n)[1] : e.replace(/^\.t-/, ""),
      s = s.replace("ñ", "#").replace("ç", String.raw`\+`).replace("û", String.raw`\.`),
      new RegExp(s)
  }
  ));
  return s.length > 0 && e.some((e=>s.some((t=>t.test(e)))))
},

// ......
// this function checks "Hide questions in your ignored tags" flag
k = function() {
    return t(".js-hide-ignored").is(":checked")
}
6
  • I don't watch or ignore any tags here on MSE, and regularly get this update banner.
    – Luuklag
    Feb 11, 2022 at 14:15
  • 3
    How exactly are you reproducing this? Which page are you on? Any filters applied? Which sorting is used?
    – VLAZ
    Feb 11, 2022 at 14:51
  • 2
    I went to the front page of MSE and I don't see any summaries. I didn't either watched nor ignored tags initially. I added an ignored tag and refreshed the page but there were still no summaries. I added a watched tag and refreshed - again no summaries (this is what you see in the screenshot). Is this what you mean? If so, under which circumstance do you even get summaries for the front page? If not, then which page is it?
    – VLAZ
    Feb 11, 2022 at 14:56
  • @VLAZ stackoverflow.com/questions with watched tags filter. Same issue on ru.stackoverflow.com/questions.
    – Spatz
    Feb 11, 2022 at 14:56
  • No repro: Before -> After. I went to the questions page, clicked Filter, selected my watched tags, and applied the filter. Waited for new activity and clicked on the banner to load the new questions. All of the items had a summary. You can see that I do not have ignored tags in the first two screenshots. Am I trying to reproduce this correctly?
    – VLAZ
    Feb 11, 2022 at 15:07
  • 2
    The JavaScript tag page works fine when I access it while logged in with my main account (i.e. notification of new activity is shown; the page definitely subscribes the WebSocket for activity in the JavaScript tag; I have no watched tags and no ignored tags). However, when using a 21 rep test account and in incognito/private browsing mode, the page does not subscribe to any realtime WebSocket question activity feed, so can't show new activity live ("normal" would be to subscribe to the feed for the tag).
    – Makyen
    Feb 11, 2022 at 18:12

0

You must log in to answer this question.

Browse other questions tagged .