summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfeed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfeed.c b/sfeed.c
index ff978eb..58c70fe 100644
--- a/sfeed.c
+++ b/sfeed.c
@@ -566,8 +566,8 @@ xml_handler_start_element(XMLParser *p, const char *name, size_t namelen)
}
} else if (ctx.item.feedtype == FeedTypeAtom) {
if (ctx.tagid == AtomTagPublished || ctx.tagid == AtomTagUpdated) {
- /* ignore, prefer updated over published */
- if (ctx.tagid != AtomTagPublished || !ctx.item.timestamp.len) {
+ /* ignore, prefer published over updated */
+ if (ctx.tagid != AtomTagUpdated || !ctx.item.timestamp.len) {
ctx.field = &ctx.item.timestamp;
}
} else if (ctx.tagid == AtomTagTitle) {