更新 ATOM 条目的正确/接受方式 [英] Correct/Accepted Way to Update an ATOM Entry

查看:27
本文介绍了更新 ATOM 条目的正确/接受方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是更正"方式来指示更新了 ATOM 提要中的条目?

What's to "correct" way to indicate an entry in an ATOM feed is updated?

正确"是指符合现有规范供稿读者会注意到并标记为新的/未读的内容.

By "correct" I mean fits into existing specifications and something feed readers will notice and mark as new/unread.

我发现的所有规范都表明支持更新的节点.但是,当我尝试这样的事情时

All the specifications I've found say there's support for an updated node. However, when I try something like this

<entry>
    <title>Ipv4 For Sale</title>
    <link href="http://tech.slashdot.org/story/12/05/24/1526258/sales-of-unused-ipv4-addresses-gaining-steam"/>
    <id>urn:uuid:0fd0a227-1be0-bce4-9f53-8c47bf682eb7</id>
    <updated>2012-05-24T15:18:19-07:00</updated>
    <published>2012-05-24T13:11:37-07:00</published>
    <summary type="html"><![CDATA[<p>Web Content Here</p>]]></summary>
</entry>

我的提要阅读器将显示新内容,但不会将该项目标记为新的/未读的.我正在使用 NetNewsWire,它既是一个主流的提要阅读器,而且 有一个设置来标记为未读"任何已更新"的项目.

my feed reader will display the new content, but it will NOT mark the item as new/unread. I'm using NetNewsWire which is both a mainstream feed reader, and has a setting to "Mark as Unread" any "Updated" items.

关于这个主题还有其他一些 Stack Overflow 问题,虽然我读到的问题证实了我上面描述的行为,但没有一个(似乎?)提供解决方案.

There's a few other Stack Overflow questions on this subject, and while the ones I read confirm the behavior I've described above, none (seem to?) provide a solution.

有没有办法做到这一点,或者发布一个全新的条目是正确的"吗?

Is there a way to do this, or is the "correct" thing to post a completely new entry?

使用 PHP 的 DATE_ATOM 常量来生成提要日期(如果有的话).

Using PHP's DATE_ATOM constant to generate the feed dates, if that matters.

推荐答案

规范文档指出,如果一个项目被重新发布(即更新),它的 id 可能不会改变.因此,如果阅读器提供了在 atom:updated 字段更改时标记项目未读的功能,但随后没有这样做,这似乎是一个软件错误:)

The specification document states that if an item is republished (i.e. updated), its id may not change. So if a reader provides a feature that marks items unread when their atom:updated field changes, and it subsequently doesn't do that, it would seem this is a software bug :)

在提到的新闻阅读器的网站上,我发现了一个更新,虽然很旧,但可能会解决您遇到的问题:http://netnewswireapp.com/netnewswire-3-2-14-syncing-sorting-fixes

On the site of the mentioned news reader I found an update, though pretty old, that might fix what you're experiencing: http://netnewswireapp.com/netnewswire-3-2-14-syncing-sorting-fixes

这篇关于更新 ATOM 条目的正确/接受方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆