Martin Vuille
847556cda2
Fix deprecated variable reference
...
Signed-off-by: Martin Vuille <jpmv27@yahoo.com>
2024-03-13 12:43:05 +01:00
mortee
70e18cdb2e
make phpcs happy
2024-02-21 09:16:30 +01:00
mortee
540b7db34e
added --check-elapsed command line option, to prevent existing scripts from breaking
2024-02-21 09:16:30 +01:00
mortee
9ee51e0c5b
made reset logic and update problem checking independent of each other
2024-02-21 09:16:30 +01:00
mortee
f5a5caa3cc
output clearer error message
...
Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com>
Signed-off-by: mortee <mortee.github@kavemalna.hu>
2024-02-21 09:16:30 +01:00
mortee
d90769d2c6
occ news:updater:job exits with code 2 if last update was too long ago
...
Signed-off-by: mortee <mortee@kavemalna.hu>
2024-02-21 09:16:30 +01:00
IgorA100
4f5cf492ae
Styling
...
Signed-off-by: IgorA100 <igora100@gmail.com>
2024-01-25 11:23:55 +01:00
IgorA100
2f6118e818
Replacing tabs with spaces
...
Signed-off-by: IgorA100 <igora100@gmail.com>
2024-01-25 11:23:55 +01:00
IgorA100
e7de0b550a
Cancel preserve keys of the items array.
...
Signed-off-by: IgorA100 <igora100@gmail.com>
2024-01-25 11:23:55 +01:00
IgorA100
457aaa7aaf
Fix: Mark over 65535 unread items as "read"
...
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-25 11:23:55 +01:00
Josh
668ed82280
FolderRead: add type declarations
...
Signed-off-by: Josh <josh.t.richards@gmail.com>
2024-01-21 13:58:20 +01:00
Benjamin Brahmer
a8c26384a3
fix typo
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-12-30 15:25:56 +01:00
Benjamin Brahmer
324fee8161
adjust existing migration
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-12-30 15:25:56 +01:00
Benjamin Brahmer
db4bb6381d
php 8.2 deprecated ${} in strings {$var} is a working alternative
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-12-30 15:25:56 +01:00
Benjamin Brahmer
08f4e63aeb
Add Listener for missing db indices
...
this allows admins to add them via occ.
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-12-30 15:25:56 +01:00
Christof Dorner
a8f43de588
use https for all explore feed urls and favicons
...
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-12-19 15:20:00 +01:00
Sean Molenaar
9f5da17e1d
fix: adopt search to NC 28 filters
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2023-11-15 09:27:41 +01:00
Benjamin Brahmer
70aed07c0b
fix dbal deprecations
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-11-08 11:07:40 +01:00
anoy
ff5de06c71
adjust search urls to match changed Vue routes
...
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2023-11-07 14:16:45 +01:00
Benjamin Brahmer
1632f5b0e2
adjust dependabot, remove allowEvalScript()
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-10-24 13:22:44 +02:00
Devlin Junker
3e35d781cf
Merge remote-tracking branch 'nextcloud/master' into master-merge
...
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
2023-10-22 14:03:52 -07:00
IgorA100
ce8888443c
Update Scraper.php
...
Use FetcherConfig::DEFAULT_USER_AGENT for Curl
Signed-off-by: IgorA100 <igora100@gmail.com>
2023-10-19 08:26:14 +02:00
IgorA100
982ff16a2e
Fix: Set CURLOPT_USERAGENT
...
Some sites do not serve content without a User Agent
Set CURLOPT_USERAGENT= Google Chrome
Signed-off-by: IgorA100 <igora100@gmail.com>
2023-10-19 08:26:14 +02:00
Devlin Junker
30e4e9b442
copy files from explore.scss file
...
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
2023-10-11 18:41:33 +02:00
Benjamin Brahmer
816239c198
Log more useful things when checking a logo
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-10-11 18:40:38 +02:00
Devlin Junker
883b7b5368
fix length of line
...
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
2023-10-02 19:37:54 -07:00
devlinjunker
0aa4b10390
Merge branch 'vue-rewrite' into share-item
...
Signed-off-by: devlinjunker <devlin.junker@gmail.com>
2023-10-01 10:44:34 -07:00
Devlin Junker
e6f5edbb0c
fix whitespace
...
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
2023-10-01 10:28:29 +02:00
Devlin Junker
e16ab4a364
add warning message generated with PHP, also check for subcribe_to parameter
...
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
2023-10-01 10:28:29 +02:00
Devlin Junker
816ef83bd0
reuse ShareItem component in FeedItemDisplay
...
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
2023-09-26 14:55:32 -07:00
Benjamin Brahmer
da83f9a9b3
use unique name for cache folder
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-08-26 10:52:58 +02:00
Benjamin Brahmer
b99320dd4a
Check available compression types of curl ( #2328 )
...
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-25 09:37:29 +02:00
Benjamin Brahmer
17f0fc7f4a
Add a command to check the job status and reset it
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-08-22 09:47:11 +02:00
Benjamin Brahmer
ca9e07b3ba
drop support for Nextcloud 25
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-08-22 09:14:32 +02:00
Devlin Junker
b9a5887897
resolve build issues
...
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
2023-08-09 11:08:04 +02:00
Devlin Junker
923f986e67
upmerged from master
...
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
2023-08-09 11:08:04 +02:00
Benjamin Brahmer
ca6cedeb28
Upgrade feed-io to v5.1.3
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-08-09 10:58:45 +02:00
Mynacol
48e1ad1583
Use HTTP compression for downloads
...
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](ffef9eaabe
),
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-22 11:31:42 +02:00
Benjamin Brahmer
9b29d84b47
allowEvalScript set to true
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-06-18 14:41:15 +02:00
Daniel Starzmann
2d4cb5ed1c
Improve sql query performance by removing unused payload
...
Signed-off-by: Daniel Starzmann <daniel@starze.de>
2023-04-16 11:13:30 +02:00
Benjamin Brahmer
a70d155ce4
Set lastmodified in read all
...
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-04-05 19:43:02 +02:00
Benjamin Brahmer
b1476e958a
If timestamp is null use timestamp "one year ago"
...
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-23 12:12:06 +01:00
Robert Wunderer
eeabb4189b
Use httpLastModified field for If-Modified-Since header when fetching feed updates
...
Signed-off-by: Robert Wunderer <robert.wunderer@caprisys.at>
2023-03-23 12:12:06 +01:00
Benjamin Brahmer
be95c17f46
store useragent in one place
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-03-23 12:11:38 +01:00
Benjamin Brahmer
ea8002e2d9
add cron status badge to admin setting
...
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-13 14:39:15 +01:00
Benjamin Brahmer
7cdf3c83e8
fix style
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-03-02 17:51:53 +01:00
Benjamin Brahmer
04fcda9b1a
Remove unused job from db
...
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-03-02 17:51:53 +01:00
Benjamin Brahmer
69681d12cb
Implement item search
...
The search result can only link to the feed.
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-02-14 11:18:00 +01:00
Sean Molenaar
e5f75d7a4c
fix: do not request favicon for empty base URL
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2023-02-14 10:18:08 +01:00
Benjamin Brahmer
ef04d091c7
Update lib/Db/Feed.php
...
Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com>
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-01-12 18:27:32 +01:00