Stopping RSS announcements when editing old entries?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
clafferty
Regular
Posts: 43
Joined: Tue Jul 18, 2006 8:47 pm

Stopping RSS announcements when editing old entries?

Post by clafferty »

I'm going through all my old entries changing the urls of images to a new image host... but whenever i edit an entry, the RSS feed sends it out like a new post. Is there a way to stop this... even just temporarily while I work on these old posts? Thanks!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Stopping RSS announcements when editing old entries?

Post by garvinhicking »

Hi!

In fact your RSS-feed only pushes its entries there because the "last_modified" timestmap of your entry decides to re-push them, when your RSS-Client also has the "Last-Modified" header sent.

So in fact this is intended behaviour, there's not much you can do about that - only if you go to the database manually and set the "last_modified" timestamp there to equal the "timestamp" column value...

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
clafferty
Regular
Posts: 43
Joined: Tue Jul 18, 2006 8:47 pm

Post by clafferty »

anyway i can stop the behavior temporarily... or perhaps put in an IF statement somewhere that will not resend the RSS when modified (only created)... or will only send if the modified date is after May 2007... or better yet, will only send if the original creation date (not modified date) of the post is in the year 2007?

or a way to just disable RSS all-together during the times i'll be editing these posts? i tried renaming RSS.php to something else... but as soon as i named it back, the feeds went out. :(

thanks in advance!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Yes, the syndication plugin has a setting about "RFC Feed compliance" which you can enable to make your RSS-feed no longer conern the "last modification" timestamp of an RSS client?

Of course, just using the SQL-query

Code: Select all

UPDATE serendipity_entries SET last_modified = timestamp
Would also simply set the last_modification date to the entry creation, resulting in somewhat the same effect...

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
clafferty
Regular
Posts: 43
Joined: Tue Jul 18, 2006 8:47 pm

Post by clafferty »

thanks garvin! either one of those options sounds like it would accomplish what i want... i only want an entry to go out via RSS when it's first posted, not when it's modified.

unfortunately, i'm not sure where to add that database call... and i can't find the RFC compliance setting you mentioned (the only plugin i see regarding syndication is the "syndicate this blog" one in the sidebar). could you point me in the right direction? you'll have to forgive me as my knowledge of RSS and plugins is somewhat lacking...

thanks!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Yes, the RFC compliance option is contained in the Syndication plugin configuration. It's there sine Serendipity 1.1 I think.

The database call you need to execute manually from phpMyAdmin or tools like that.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply