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
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
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
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
Benjamin Brahmer
505b3360cb
Remove setting for minimum purge interval setting
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-10-12 21:09:54 +02:00
Benjamin Brahmer
b88e1a546a
New administrator setting for deleting unread items automatically
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-10-08 17:29:08 +02:00
Benjamin Brahmer
a7f69c4b63
fix readAll
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-08-31 16:14:18 +02:00
Carl Schwan
753e88793e
Port admin settings to vue ( #1880 )
...
* 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-30 18:07:25 +02:00
Benjamin Brahmer
1a76e03f5a
fix unittest
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-08-21 16:39:07 +02:00
Benjamin Brahmer
1784406fa7
Fix deprecation warnings from Nextcloud. ( #1869 )
...
* 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-19 10:07:43 +02:00
Benjamin Brahmer
a3d70f50aa
Fix Test and adjust code
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-08-19 09:14:27 +02:00
Benjamin Brahmer
d4450ebad2
Change Autodiscover behaviour ( #1860 )
...
* 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-08-08 19:23:42 +02:00
Accalia Elementia
fdf037e728
Use Feed Link as GUID when Feed omits Guid. ( #1785 )
...
* 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-24 17:07:50 +02:00
Benjamin Brahmer
5af0cb6e22
update last_modified when marking an item as read
...
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-05-02 09:56:12 +02:00
Paul Tirk
da5e749ecc
rename parameter for read/unread api call
...
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2022-04-30 20:04:30 +02:00
Paul Tirk
4b68169142
also allow starring/unstarring multiple items by id
...
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2022-04-30 20:04:30 +02:00
Paul Tirk
115df4b9e2
remove duplicate function
...
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2022-04-30 20:04:30 +02:00
Paul Tirk
4594fc6d1f
add tests for starring/unstarring items by id
...
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2022-04-30 20:04:30 +02:00
nextcloud486153
032d48ad7b
Fix malformed feeds (without GUIDs) stopping the update process ( fixes #1738 )
...
Signed-off-by: nextcloud486153 <78801830+nextcloud486153@users.noreply.github.com>
2022-04-18 13:16:01 +02:00
Benjamin Brahmer
cd3b00332c
adjust test
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2022-03-08 13:05:15 +01:00
Sean Molenaar
a52eee5671
chore: use executeStatement instead of executeUpdate
...
Signed-off-by: Sean Molenaar sean@seanmolenaar.eu
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-11-18 14:10:57 +01:00
Benjamin Brahmer
7d61a1cb09
Download feed logos via guzzle to have better error handling
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-10-18 17:57:18 +02:00
David Baucum
21203dbf63
Update all feeds from command
...
Closes #1359
Signed-off-by: David Baucum <david@baucum.me>
2021-07-24 18:17:31 +02:00
anoy
ed066a8129
adapt tests to QBMapper changes in NC22
...
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2021-07-17 20:31:29 +02:00
Sean Molenaar
fd01e9ad7b
Search: add feed search
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-06-16 11:32:19 +02:00
Sean Molenaar
469807a091
Chore: implement removals from #935
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-06-01 11:23:04 +02:00
Sean Molenaar
74f09ee716
db: no longer order by items.last_modified
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-05-27 19:12:55 +02:00
Sean Molenaar
2159eccbf1
controller: getRead + all_items is now unread type
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-05-27 19:10:53 +02:00
Sean Molenaar
7c124dc288
Search: Fix app prefix in search redirect
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-04-24 20:34:15 +02:00
anoy
91db7113a8
replace deprecated getDescription call
...
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2021-04-24 14:21:57 +02:00
Sean Molenaar
111bf5fff2
DB: only sort on item IDs
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-04-14 13:56:54 +02:00
Sean Molenaar
d5c2a8bb09
Search: Fix and test folder search
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-04-10 14:55:33 +02:00
Marco Nassabain
391dd25293
🩹 Fix rebase issues
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 22:31:21 +02:00
Marco Nassabain
a6f9e4495b
🩹 Fix rebase errors
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 22:31:21 +02:00
Marco Nassabain
486e651ed6
🎨 Rename $l to $l10n
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 22:31:21 +02:00
Marco Nassabain
307534cc29
✅ Added test for sharedByDisplayName field
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 22:31:21 +02:00
Marco Nassabain
9e9bd24c5f
✅ Add + update sharer display name tests
...
- added testMapSharedByDisplayNames
- updated ItemController tests to expect call to function
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 22:31:21 +02:00
Marco Nassabain
bbdd95c30d
🔥 Remove UserManager code from ItemMapper & tests
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 22:31:21 +02:00
Marco Nassabain
c2c92a3f5a
🩹 Fix issues after rebase
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 22:31:21 +02:00
Marco Nassabain
af84bbf204
✅ Item: update tests - include sharer display name
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 22:31:21 +02:00
Marco Nassabain
0fdd88df55
🧹 ShareService: rename $url to $urlGenerator
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 22:31:21 +02:00
Marco Nassabain
a754b437e0
✅ Update test to include localization
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 22:31:21 +02:00
Marco Nassabain
7f3c63a2a4
🎨 ShareService: update dummy feed URL
...
- add IURLGenerator DI
- update url to "http://serverurl/news/sharedwithme "
- updated tests: added DI + adapted expected url
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 22:31:21 +02:00
Marco Nassabain
920ae54a2c
🌐 ShareService: Localize dummy feed title
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 22:31:21 +02:00
Marco Nassabain
b0c42e4cd7
♻️ Item: Remove isShared
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 22:31:21 +02:00
Marco Nassabain
2cba1e4146
🧹 Cleanup code, remove spaces, rename variables
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 22:31:21 +02:00