summaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2024-03-13Fix deprecated variable referenceMartin Vuille
Signed-off-by: Martin Vuille <jpmv27@yahoo.com>
2024-02-21make phpcs happymortee
2024-02-21added --check-elapsed command line option, to prevent existing scripts from ↵mortee
breaking
2024-02-21made reset logic and update problem checking independent of each othermortee
2024-02-21output clearer error messagemortee
Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com> Signed-off-by: mortee <mortee.github@kavemalna.hu>
2024-02-21occ news:updater:job exits with code 2 if last update was too long agomortee
Signed-off-by: mortee <mortee@kavemalna.hu>
2024-01-25StylingIgorA100
Signed-off-by: IgorA100 <igora100@gmail.com>
2024-01-25Replacing tabs with spacesIgorA100
Signed-off-by: IgorA100 <igora100@gmail.com>
2024-01-25Cancel preserve keys of the items array.IgorA100
Signed-off-by: IgorA100 <igora100@gmail.com>
2024-01-25Fix: Mark over 65535 unread items as "read"IgorA100
If there are more than 65535 unread items, then when checking “mark as read” you will get an SQL error (SQLSTATE[HY000]: General error: 7 number of parameters must be between 0 and 65535 at) due to the limitation of the number of parameters. The array is divided into smaller ones. Signed-off-by: IgorA100 <igora100@gmail.com>
2024-01-21FolderRead: add type declarationsJosh
Signed-off-by: Josh <josh.t.richards@gmail.com>
2023-12-30fix typoBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-12-30adjust existing migrationBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-12-30php 8.2 deprecated ${} in strings {$var} is a working alternativeBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-12-30Add Listener for missing db indicesBenjamin Brahmer
this allows admins to add them via occ. Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-12-19use https for all explore feed urls and faviconsChristof Dorner
The CCMixter favicon was responsible for browsers emitting a mixed content warning. While at it, I changed all other http URLs to https. Signed-off-by: Christof Dorner <christof@chdorner.com>
2023-11-15fix: adopt search to NC 28 filtersSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2023-11-08fix dbal deprecationsBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-11-07adjust search urls to match changed Vue routesanoy
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2023-10-24adjust dependabot, remove allowEvalScript()Benjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-10-22Merge remote-tracking branch 'nextcloud/master' into master-mergeDevlin Junker
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
2023-10-19Update Scraper.phpIgorA100
Use FetcherConfig::DEFAULT_USER_AGENT for Curl Signed-off-by: IgorA100 <igora100@gmail.com>
2023-10-19Fix: Set CURLOPT_USERAGENTIgorA100
Some sites do not serve content without a User Agent Set CURLOPT_USERAGENT= Google Chrome Signed-off-by: IgorA100 <igora100@gmail.com>
2023-10-11copy files from explore.scss fileDevlin Junker
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
2023-10-11Log more useful things when checking a logoBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-10-02fix length of lineDevlin Junker
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
2023-10-01Merge branch 'vue-rewrite' into share-itemdevlinjunker
Signed-off-by: devlinjunker <devlin.junker@gmail.com>
2023-10-01fix whitespaceDevlin Junker
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
2023-10-01add warning message generated with PHP, also check for subcribe_to parameterDevlin Junker
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
2023-09-26reuse ShareItem component in FeedItemDisplayDevlin Junker
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
2023-08-26use unique name for cache folderBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-08-25Check available compression types of curl (#2328)Benjamin Brahmer
Check an use available compression types of curl use compression when downloading feed logo Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com> Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-08-22Add a command to check the job status and reset itBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-08-22drop support for Nextcloud 25Benjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-08-09resolve build issuesDevlin Junker
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
2023-08-09upmerged from masterDevlin Junker
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
2023-08-09Upgrade feed-io to v5.1.3Benjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-06-22Use HTTP compression for downloadsMynacol
As long as we use Feed-io < 6, we always use Guzzle (with Feed-io 6, we need to choose a [HTTPlug](https://httplug.io/) library ourselves). Guzzle [supports](https://docs.guzzlephp.org/en/stable/request-options.html#decode-content) transparently decompressing gzip or deflate compressed responses, which is enabled by default. Feed-io does this [by default](https://github.com/alexdebril/feed-io/pull/311/commits/ffef9eaabefcfc66bca3bb598b952d13842f14b5), but as we override the headers, we have to add a fitting `Accept-Encoding` header as well. Previously, my feed collection caused up to 45.9 MB download traffic per cronjob, with this commit it is as low as 23.6 MB. Signed-off-by: Mynacol <Mynacol@users.noreply.github.com>
2023-06-18allowEvalScript set to trueBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-04-16Improve sql query performance by removing unused payloadDaniel Starzmann
Signed-off-by: Daniel Starzmann <daniel@starze.de>
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>