-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add updatedDate to item model #43
Conversation
Looks good, did you test it? You need to bump the version to 9.0.5 to start the migration |
I did a quick test with the web interface and OCReader, should I update this pull request with a bumped version? |
yes |
BTW: https://github.com/nextcloud/news/blob/master/lib/Service/FeedService.php#L248 This probably needs to be adjusted |
👍 |
Ok, things are broken because getPublishedDate() can return null: PHP Fatal error: Call to a member function getTimestamp() on null in /var/www/html/owncloud/apps/news/lib/Fetcher/FeedFetcher.php on line 243 Will revert PR |
Why not just use getDate() if getPublishedDate() is null? If this is acceptable to you, I can send another pull request. |
@schaal shouldnt that be done in picoFeed instead? |
Not sure, I could see it either way |
Right, you can add the checks at both places but if there's a sensible default it should be done once in the library rather than forcing all users to deal with nulls :D My impression was that your? pull request to picoFeed already did that or am I wrong? |
It wasn't my pull request, but looking at the code, it just sets |
Implement your suggestions from owncloud-archive/news#982 (comment)