f-a
(Francesco Ariis)
1
exclude_tag 在分类 RSS 源中不起作用(特别是针对这些源)。
复现步骤:
wget -O a.xml “https://meta.discourse.org/c/support/6.rss”
wget -O b.xml “https://meta.discourse.org/c/support/6.rss?exclude_tag=ai”
diff a.xml b.xml
您会看到这两个文件是相同的。
预期结果:
带有 ai 标签的内容应从 RSS 源中排除。
附加信息:
主 RSS 源可以正常工作,即:
wget -O a-all.xml “https://meta.discourse.org/latest.rss”
wget -O b-all.xml “https://meta.discourse.org/latest.rss?exclude_tag=ai”
diff a-all.xml b-all.xml
显示这两个文件是不同的。
sam
(Sam Saffron)
2
我有一个简单的变通方案!
/latest.rss?category=6&exclude_tag=ai
已确认类别 RSS 订阅源中的边缘情况。
像这样应该能彻底解决问题。稍后我会标记协作。
def category_feed
guardian.ensure_can_see!(@category)
discourse_expires_in 1.minute
# ...
@topic_list = TopicQuery.new(current_user, build_topic_list_options)
.list_new_in_category(@category)
render "list", formats: [:rss]
end
1 个赞
f-a
(Francesco Ariis)
3
我可以确认这个简单的变通方法:
a) 很容易;
b) 确实有效。
非常感谢!
1 个赞