Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Published time on feeds #982

Closed
crazy-max opened this issue Apr 23, 2016 · 9 comments
Closed

Published time on feeds #982

crazy-max opened this issue Apr 23, 2016 · 9 comments

Comments

@crazy-max
Copy link

crazy-max commented Apr 23, 2016

Hi,

First of all thanks for this great app!
Yesterday i have migrated from Feedly to ownCloud News app.
Eveything seems fine except a "problem" with the items timestamp.

Feedly seems to be based on the <published> feed tag and ownCloud News is based on the <updated> feed tag to create the item timestamp.

ownnote

feedly

rss

For example on a Youtube RSS feeds channels the updated timestamp is over and over updated so the timestamp is not accurate for me (see screenshots and this feed)

Is there an option to only display published date and not updated date in the column ?

I saw a bugfix on 4.2.0 release, maybe it is related ? :

Ignore Atom updated tag if it is earlier than the published tag

ownCloud : 9.0.1
ownCloud News: 8.7.1

Thanks!

@BernhardPosselt
Copy link
Contributor

Hi @crazy-max !

This is a picofeed issue, can you open this issue there?

@BernhardPosselt
Copy link
Contributor

@crazy-max
Copy link
Author

Hi @BernhardPosselt !

Ok i will add this issue there.

@crazy-max
Copy link
Author

crazy-max commented Apr 23, 2016

Indeed it's a picoFeed issue (example in Parser/Atom.php file) :

$item->setDate(max($published, $updated)); // We use the most recent date between published and updated

I have created an issue on their repository.
For the moment i have added a method to retrieve the published version on picoFeed parsers and change the code in the feedfetcher.php script of ownCloud News :

test

@BernhardPosselt
Copy link
Contributor

Maybe you could create a pull request for picofeed if you've already fixed it ;)

Keep in mind that not all feeds feature the published tag so a fallback should be considered

@crazy-max
Copy link
Author

Yep i have a fallback too i will create a pull request ;)

@crazy-max
Copy link
Author

I have made a comment on the picoFeed issue with the implementation of published / updated item date : https://github.com/fguillot/picoFeed/issues/267
I think i will fork ownCloud News too and add an implementation to let the choice to the user to choose between updated or published date.

@BernhardPosselt
Copy link
Contributor

If we have a way to distinguish between updated and published, I think it would make sense to have both. Let's first get the picofeed PR merged, then start working on the News stuff ;D

Some tips:

That and maybe some unit test adjustements should be all for the server side.

These are the places where the client side date is being rendered:

We'd have to think of a way to integrate this in a way that is less intrusive:

  • Don't show the updated date if its the same as the published date
  • Either replace the published with the updated date or keep the published date were it is and display the updated date maybe somewhere below the heading, like: updated 1h ago

@crazy-max
Copy link
Author

Totally agree but like you said let's focus on picoFeed first ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants