summaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2023-04-05Set lastmodified in read allBenjamin Brahmer
if this is not updated the API won't work correctly and we get sync errors. Adjust test to use item api Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-03-23If timestamp is null use timestamp "one year ago"Benjamin Brahmer
if timestamp is not set during creation of a feed use date one year ago code fixes and linting fixes. Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com> Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-03-23Use httpLastModified field for If-Modified-Since header when fetching feed ↵Robert Wunderer
updates Signed-off-by: Robert Wunderer <robert.wunderer@caprisys.at>
2023-03-23store useragent in one placeBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-03-13add cron status badge to admin settingBenjamin Brahmer
Display a info card in the settings, indicating when the last news update job ran. Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-03-02fix styleBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-03-02Remove unused job from dbBenjamin Brahmer
Our background job was renamed quite a while ago the old job remained in the db, to prevent confusion this adds a repair step to remove the old job. Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-02-14Implement item searchBenjamin Brahmer
The search result can only link to the feed. Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-02-14fix: do not request favicon for empty base URLSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2023-01-12Update lib/Db/Feed.phpBenjamin Brahmer
Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com> Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-01-12don't process link if it's nullBenjamin Brahmer
don't process body of feed if it's null Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com> Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-01-11Workaround for #2048Benjamin Brahmer
The league/uri version that we inherit in Nextcloud is a bit outdated. That version can't handle certain uris. Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-11-17Bump fivefilters/readability.php from 2.1.0 to 3.1.0 (#1989)dependabot[bot]
* Bump fivefilters/readability.php from 2.1.0 to 3.1.0 Bumps [fivefilters/readability.php](https://github.com/fivefilters/readability.php) from 2.1.0 to 3.1.0. - [Release notes](https://github.com/fivefilters/readability.php/releases) - [Changelog](https://github.com/fivefilters/readability.php/blob/master/CHANGELOG.md) - [Commits](https://github.com/fivefilters/readability.php/compare/v2.1.0...v3.1.0) --- updated-dependencies: - dependency-name: fivefilters/readability.php dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * update Authors Signed-off-by: Benjamin Brahmer <info@b-brahmer.de> * Change namespace for fivefilters Signed-off-by: Benjamin Brahmer <info@b-brahmer.de> Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Benjamin Brahmer <info@b-brahmer.de> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Benjamin Brahmer <info@b-brahmer.de>
2022-10-23Fix various keyboard navigation issuesRhys Tyers
Signed-off-by: Rhys Tyers <mail@rhy.si>
2022-10-12Remove setting for minimum purge interval settingBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-10-08New administrator setting for deleting unread items automaticallyBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-08-31fix readAllBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-08-30Port admin settings to vue (#1880)Carl Schwan
* Port admin settings to vue Co-authored-by: anoy. <anoymouserver@users.noreply.github.com> Co-authored-by: Benjamin Brahmer <info@b-brahmer.de> Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-08-25Fix adding feed that was just deleted is causing an errorBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-08-21change itemMapper readAllBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-08-19fixup for #1861Benjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-08-19Fix deprecation warnings from Nextcloud. (#1869)Benjamin Brahmer
* don't use private class anymore * execute is deprecated * fix migration execute statement * fix unittest Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-08-19Fix deprecationsBenjamin Brahmer
add phpstan deprecation rules Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com> Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-08-19Fix Test and adjust codeBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-08-19add item types to api docsBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-08-19adapt generateSearchIndexBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-08-08Change Autodiscover behaviour (#1860)Benjamin Brahmer
* change autodiscover behaviour to only run if the provided url is not already a feed * Execute feed check after the final url is found Signed-off-by: Benjamin Brahmer <info@b-brahmer.de> Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com>
2022-06-28fix type always string for findAllFromUserBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-05-31If items of feed do not provide an author fallback to feed author (#1803)Benjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-05-24Use Feed Link as GUID when Feed omits Guid. (#1785)Accalia Elementia
* Use Feed Link as GUID when Feed omits Guid. As noted in nextcloud/news#1702 some feeds omit the GUID and are therefore not a valid RSS feed. nextcloud/news#1738 resolved the issue to allow valid feeds to update correctly when an invalid feed is present. This commit allows parsing of the invalid feed as well by assuming that the item link of the feed is unique to the feed and using it in place of the GUID when the feed omits the GUID. This will allow NextCloud News to accept and behave like many other popular feed aggregators when presented with such an invalid feed. Signed-off-by: Accalia <Accalia@Elementia.me> * Add basic Logging when using fallback guid Signed-off-by: Accalia <Accalia@Elementia.me> * Add basic Logging when using fallback guid - Fix Fatfinger Typo Signed-off-by: Accalia <Accalia@Elementia.me> * Add basic Logging when using fallback guid - Update tests to account for additional logging Signed-off-by: Accalia <Accalia@Elementia.me>
2022-05-04check if variable is null before striping tagsBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de> Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com>
2022-05-04fix the urlBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-05-02update last_modified when marking an item as readBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de> this way it works Signed-off-by: Benjamin Brahmer <info@b-brahmer.de> add changelog entry Signed-off-by: Benjamin Brahmer <info@b-brahmer.de> Partly fix test Signed-off-by: Benjamin Brahmer <info@b-brahmer.de> test passing Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-04-30rename parameter for read/unread api callPaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2022-04-30add documentation for API v1.3 & fix parameter descriptionPaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2022-04-30also allow starring/unstarring multiple items by idPaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2022-04-30remove duplicate functionPaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2022-04-30fix indentation of function descriptionPaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2022-04-30add routes for starring/unstarring items by idPaul Tirk
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2022-04-24Release 18.0.118.0.1Benjamin Brahmer
No major changes since the beta versions. Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-04-18Fix malformed feeds (without GUIDs) stopping the update process (fixes #1738)nextcloud486153
Signed-off-by: nextcloud486153 <78801830+nextcloud486153@users.noreply.github.com>
2022-04-18fix import of items when feed does not existBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-03-18rename maxItemId to newestItemId to match docsBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-03-08Fix only one item marked as read by Feed APIBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-02-27Use rawurlencode as it encodes spaces correctly as %20Benjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-12-03let Symfony handle the defualt vote valueBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-11-30Fix catching connect exceptions while fetching feed logos #1570Michael Hamann
Display the message instead of the response when catching an exception during feed logo fetching. As there is no response and thus no method `getResponse()` in `ConnectException`, this fixes a "call to undefined method"-error that prevented feeds from fetching if fetching the logo resulted in a `ConnectException`. Signed-off-by: Michael Hamann <michael@content-space.de>
2021-11-18Fix code styleBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-11-18chore: use executeStatement instead of executeUpdateSean Molenaar
Signed-off-by: Sean Molenaar sean@seanmolenaar.eu Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-11-14Catch network errors while fetching feed logos, fixes #1570Benjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>