How can I mark an RSS item "expired"?

I am working on (webpage / RSS feed / form in winapp) to show the current system status and recent updates.

I would like to know when an open problem is solved so that it can be drawn with a stroke. This will allow users to understand that the problem has been resolved, but keep it on the list. I know that it would be easier to remove it, but I want users to see that it resolved.

I did not see the “expiration date” by any RSS or ATOM standard, but I found out that a different set (or many sets) of eyes can read differently. If there is no expiration tag, I will find another way to get information for the Internet and winform, but RSS readers of the fead may not display it correctly.

+3
source share
3 answers

You can use Microsoft Simple Sharing Extensions to indicate that the feed is a complete list and nothing exists in it.

There is also the Atom Tombstone Project .

And for backward compatibility, you can simply update the item with information that it has expired.

I would use Atom for this - in my experience, aggregators respect Atom more <id>and do not duplicate elements when their name changes.

+1
source

D'ah!

Thanks to David's comment, I switched to accounting mode.

The idea is that as soon as the presentation of an element appears in the RSS feed, it will always forever be an accurate representation

. . ( ) .

ATOM .

RSS ATOM, , . ( , )

, . - RSS / ATOM , - , . , , , .

+1

( , ).

, ( -) :

if ($status == 'expired') {
 $title = 'EXPIRED! ' . $title;
 $body = '*** EXPIRED! ***' . $body . '*** EXPIRED! ***';
}
0

Source: https://habr.com/ru/post/1716372/


All Articles