Filter topics by tag in common with "top", "read", "bookmarks" and "posted" filters


(Alexander) #1

Hello dear creators of and users of this beautiful discussion platform!

I found that it’s not possible to filter topics by tag in “top”, “read”, “bookmarks” and “posted” sections - server return 500 error, and 404 for “top” (for example Discourse Meta), but for “latest”, “new” and “unread” all is ok.

Guess that in file discourse/topic_query.rb at master · discourse/discourse · GitHub must be defined “*_results” blocks for this unsupported filters (i’m absolutely zero in ruby on rails, don’t know it, so hope that the specialists will help resolve this issue).

Thank you very much!

P.S. Sorry for my English…


(Jeff Atwood) #2

Hmm good point I am not sure how many of those make sense for tags:

  • top
  • read
  • bookmarks
  • posted

cc @neil


(Neil Lalonde) #3

All the links work, although the “Top” link ignores the tag filter. So you’re asking to add support for these in the API? Or are they linked somewhere that I forgot about?

Also, I didn’t know about the “read” filter so I gave it a try without a tag filter:

It doesn’t seem to work and there’s no UI to reach it as far as I can find.


(Alexander) #4

Thanks for Your reply.
But the links NOT work. “top” link ignores the tag filter and “read”, “bookmarks” and “posted” filters also ignores it. “tag” list of topics always display latest topics. There are no ui to display it by others filters that i say.
These work:

These do not work:

Could you please tell what need to make changes to the /lib/topic_query.rb file to get it working?