Marco Nassabain
5b09e74f40
🗃 NewsItem: added share fields, feedId not null
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 22:31:21 +02:00
Paul Tirk
f18adeba26
fix invalid 'empty' checks
...
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08 10:23:11 +02:00
Paul Tirk
f358c8213b
add missing type hints
...
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08 10:23:11 +02:00
Paul Tirk
8b3c1341e8
return error if new folder name is missing on update
...
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08 10:23:11 +02:00
Paul Tirk
822423af38
use last modified timestamp data instead of removed 'updatedAt' field
...
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08 10:23:11 +02:00
Paul Tirk
b45426937e
return error if no folder name is provided
...
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08 10:23:11 +02:00
Paul Tirk
d4ace06ff5
add json error response without an exception
...
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08 10:23:11 +02:00
Paul Tirk
05b7ed7994
remove unused service exceptions & allow equally named folders
...
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08 10:23:11 +02:00
Paul Tirk
8035142973
fix wrong function definition & remove leftover copyright headers
...
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08 10:23:11 +02:00
Paul Tirk
0d7d3cdfb4
move v2 api responses into existing php traits
...
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08 10:23:11 +02:00
Paul Tirk
dff855fba5
change method names to follow nextcloud convention
...
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08 10:23:11 +02:00
Paul Tirk
323f215e3a
separate serialization functions
...
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08 10:23:11 +02:00
Paul Tirk
f22eddb91d
remove unused 'findByName' method of folder mapper/service
...
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08 10:23:11 +02:00
Paul Tirk
eb849a9be5
do not return existing folders when an API request error occurs
...
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08 10:23:11 +02:00
Paul Tirk
566a21b4a8
add possibility to serialize a reduced version of an entity
...
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08 10:23:11 +02:00
Paul Tirk
06a45387ef
lint & add missing copyright/author information
...
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08 10:23:11 +02:00
Paul Tirk
5e4c927017
add folder api v2
...
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08 10:23:11 +02:00
Paul Tirk
2a2d7194ee
add api v2 response trait
...
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08 10:23:11 +02:00
Paul Tirk
cc9c64d69b
add api version 2 & folder api routes
...
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08 10:23:11 +02:00
Paul Tirk
6e067dfd43
add serialization methods for v2 API
...
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
2021-04-08 10:23:11 +02:00
Chris Danser
6e845124df
Null check category label before trying to decode ( #1282 )
...
* Null check category label before trying to decode
Signed-off-by: skiingwiz <skiingwiz@gmail.com>
2021-04-08 08:10:41 +02:00
Sean Molenaar
90702dd297
DB: Use boolean parameter for unread/starred
...
Issue GH-1278
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-04-06 12:43:24 +02:00
Sean Molenaar
951f3eb7ee
DB: Allow negative limits
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-04-05 19:18:19 +02:00
skiingwiz
04519388ce
Allow directly adding a feed without going through the discovery process
...
Signed-off-by: skiingwiz <skiingwiz@gmail.com>
2021-04-02 11:15:17 +02:00
Sean Molenaar
78dce7ffe1
DB: Updates should use set()
...
Issue GH-1211
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-03-31 22:39:00 +02:00
Sean Molenaar
7a2b3ccfa8
chore: Improve test coverage
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-03-30 12:58:47 +02:00
Sean Molenaar
da61c93afe
Search: Add folder search ( #1215 )
...
* Search: Add folder search
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-03-29 09:25:06 +02:00
Sean Molenaar
2baa7a2b91
Make PHPstan stricter
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-03-25 18:47:38 +01:00
Sean Molenaar
baf1ca8ec9
DB: Don't show deleted feed items
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-03-23 21:11:25 +01:00
Marco Nassabain
79c9df8dc1
🎨 Item: implode categories for search index
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-03-17 08:58:42 +01:00
Marco Nassabain
7e0aab358c
🎨 Item: store categories as json & add helper fns
...
+ added setter/getters that work with arrays to simplify use case
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-03-17 08:58:42 +01:00
Marco Nassabain
29b55ae030
✨ Item: add categories into search index
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-03-17 08:58:42 +01:00
Jimmy Huynh
4e7a1b159a
✨ Add 'catagories' to jsonSerialize()
...
Signed-off-by: Jimmy Huynh <jimmy.huynh@etu.unistra.fr>
2021-03-17 08:58:42 +01:00
Jimmy Huynh
3dfbf64a6b
♻️ Renaming 'tags' into 'categories'
...
Signed-off-by: Jimmy Huynh <jimmy.huynh@etu.unistra.fr>
2021-03-17 08:58:42 +01:00
Marco Nassabain
ef0742e868
🐛 Fix Item model: set default value for setTags
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-03-17 08:58:42 +01:00
Jimmy Huynh
fd13be0f7a
✨ Update FeedFetcher: import 'tags' to 'item'
...
Signed-off-by: Jimmy Huynh <jimmy.huynh@etu.unistra.fr>
2021-03-17 08:58:42 +01:00
Jimmy Huynh
f217384716
✨ Update 'Item' model: add 'tags' field
...
Signed-off-by: Jimmy Huynh <jimmy.huynh@etu.unistra.fr>
2021-03-17 08:58:42 +01:00
Jimmy Huynh
0da1c16145
🗃 Add migration: 'tags' column (longtext)
...
Signed-off-by: Jimmy Huynh <jimmy.huynh@etu.unistra.fr>
2021-03-17 08:58:42 +01:00
Sean Molenaar
bcdeb55fcb
Actions: Integration tests using bats
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-03-01 21:13:44 +01:00
Sean Molenaar
9d5d35ce23
DB: Fix offset quotes
...
Issue GH-1200
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-02-27 15:12:59 +01:00
Sean Molenaar
bf1e71f1a7
DB: Use ID as offset in item queries
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-02-23 17:16:20 +01:00
Sean Molenaar
4e4108aaf8
Feed: Fix rename moving file
...
Issue #1181
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-02-23 15:06:02 +01:00
Sean Molenaar
4a107b3d53
General: Fix folder query
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-02-20 13:57:09 +01:00
Sean Molenaar
01e1db329c
Command: Add debug item list commands
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-02-20 13:57:09 +01:00
Benjamin Brahmer
6cd83ea1da
remove unused lastModified from feed fetcher
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-02-16 11:01:10 +01:00
Benjamin Brahmer
c09b4d8d33
prefer the feeds logo over the favicon
...
The logo of the feed is prefered if it is a square picture,
else the favicon is returned.
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com>
2021-02-16 10:16:15 +01:00
anoy
8ca7ef7e49
update sorting column
...
follow-up for b4fa772bc5
(#1056 )
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2021-02-14 17:15:46 +01:00
Sean Molenaar
b4fa772bc5
Remove V1 item API
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-02-13 13:22:57 +01:00
anoy
7e9fd48f4a
fix refetching of purged articles
...
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2021-02-10 13:58:13 +01:00
Sean Molenaar
6e9e2512ea
DB: Remove unused fields
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-02-05 09:37:17 +01:00
Sean Molenaar
5406086829
Psalm: Fix class loading
2021-02-05 07:27:11 +01:00
anoy
5c7838e9bd
fix result ordering for purging query
...
updated_date is currently always NULL
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2021-02-04 09:03:06 +01:00
anoy
e601f07ee6
fix articlesPerUpdate alias
...
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2021-02-02 20:50:34 +01:00
Sean Molenaar
66b4005b5e
Controllers: Export Starred or unread instead of and
...
Fixes GH-1010
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-02-02 16:07:38 +01:00
anoy
f2b74a0ba1
fix item purger for PostgreSQL
...
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2021-02-02 13:48:55 +01:00
Sean Molenaar
023c61b88f
Mappers: Implement item purging
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-01-30 18:27:06 +01:00
Sean Molenaar
cb10dd1d83
Base: Update psalm definition and dependency list
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-01-26 16:06:47 +01:00
Sean Molenaar
8fa1537cbf
Fetcher: Update client and add test
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-01-20 22:52:09 +01:00
Sean Molenaar
5809e57d4f
Migration: Don't use unsigned for pubdate
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-01-18 20:55:42 +01:00
Sean Molenaar
582c4d11fa
Controllers: Fetch feed after creating
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-01-18 20:15:13 +01:00
anoy
8d834cff35
fix typo in string template value
...
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2021-01-17 17:56:37 +01:00
anoy
c67feb8d8d
fix TypeError caused by type conversion in controller
...
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2021-01-17 17:56:37 +01:00
anoy
fdf4fa454d
fix TypeError in ItemMapper
...
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2021-01-15 15:16:41 +01:00
anoy
8b3516a949
fix opened state of folders is not restored
...
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2021-01-13 19:23:46 +01:00
Sean Molenaar
67b6c4e1b0
Fix psalm issues
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-01-12 13:29:08 +01:00
Sean Molenaar
e5d56f2c2e
Fix getUnreadOrStarredType
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-01-12 13:29:08 +01:00
anoy
8de3ad77fc
remove deprecated colon prefix for parameters
...
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2021-01-11 09:32:23 +01:00
Benjamin Brahmer
52f1142cd3
autofix round2
2021-01-08 22:45:10 +01:00
Benjamin Brahmer
67bbd6bfeb
fix the test
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-01-08 22:45:10 +01:00
Benjamin Brahmer
7180e11bdb
fixes done by psalm
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-01-08 22:45:10 +01:00
Sean Molenaar
d3cd465d87
Improve itemmapper wording
...
Co-authored-by: anoy. <anoymouserver@users.noreply.github.com>
2020-12-30 11:21:44 +01:00
Sean Molenaar
05377d023e
Remove PHPunit integration tests
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-12-30 11:21:44 +01:00
anoy
d1c50b8e77
fix FeedMapper find exception
...
Exception: Argument 2 passed to OCA\News\Db\FeedMapper::find() must be of the type int, string given
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2020-12-23 17:32:26 +01:00
Sean Molenaar
11f5904dd5
Fix mapper->find and empty user sessions
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-12-17 10:35:23 +01:00
Kevin Decherf
42ea24f2f4
Remove LastModified-based cursor when updating feeds
...
We remove the call to readSince() as some feeds push new articles with
pubDate prior to the lastModified time stored for these feeds (e.g.
lemonde.fr). As we go through all items of a feed again and again, we
prevent the constant update of an item's lastModified timestamp by
keeping the previous one if its fingerprint does not change.
Fixes #921
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
2020-12-15 20:02:21 +01:00
Sean Molenaar
e0edfd0dc5
Fix alias usage in v2 mapper
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-12-08 16:11:17 +01:00
Sean Molenaar
4ee3fcb781
Refactor User ID fetching and fix non-specific cleanup
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-12-08 13:58:12 +01:00
Sean Molenaar
8abddeab4f
Remove usage of old Folder code
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-12-08 13:58:12 +01:00
waffshappen
260f0e6cae
Return expected Value for Symfony Commands
...
This fixes a bug when calling allfeeds by hand about not returning anything which makes the generated json unuusuable with errors appended to stdout.
TypeError: Return value of "OCA\News\Command\Updater\AllFeeds::execute()" must be of the type int, "null" returned. in apps/mail/vendor/symfony/console/Command/Command.php:261
Returning "no error/0" fixes it.
2020-11-19 11:23:58 +01:00
anoy
c6c44be93b
fix second where overrides previous condition
...
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2020-11-11 19:21:04 +01:00
Sean Molenaar
7effe4654b
Unremove but deprecate User API
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-11-10 16:47:42 +01:00
Sean Molenaar
5bdc2df7f4
Fix unread count and related issues
...
Issue GH-924
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-11-10 16:47:42 +01:00
anoy
cb32a2c4ed
remove deprecated YouTube playlist API
...
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2020-11-07 09:57:20 +01:00
Sean Molenaar
af2fd96825
Controllers: Use v2 services
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-11-03 23:12:01 +01:00
Benjamin Brahmer
becb236419
fix delete api
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2020-11-03 21:23:04 +01:00
Sean Molenaar
10e8c28fea
Add migration with foreign keys
...
Closes #829
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-11-03 19:58:37 +01:00
Benjamin Brahmer
cfc75fb1d3
Merge branch 'master' into fix/dont_overload_getid
2020-10-29 08:21:01 +01:00
Sean Molenaar
c5daf112be
Command: Add unittests
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-10-29 08:19:03 +01:00
Sean Molenaar
ec6930da82
DB: stop overloading getID
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-10-28 23:08:53 +01:00
Sean Molenaar
48a130d3c0
Allow titles to be null
...
Issue GH-867
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-10-12 21:40:23 +02:00
Sean Molenaar
8a203a329c
Fix minor issues, prepare for foreign keys and check feeds
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-10-09 22:15:03 +02:00
Jan C. Borchardt
39f539f975
Update feeds of Explore page, curate instead of just allowing everything, to prevent advertising
...
Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
2020-10-09 20:39:12 +02:00
anoy
1fcab6e6c6
fix multiple results for guid_hash
...
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2020-10-09 20:38:58 +02:00
Tilo Spannagel
a74491ecde
Add Type Info to Entities
...
Signed-off-by: Tilo Spannagel <development@tilosp.de>
2020-10-09 13:59:23 +02:00
Sturtz Network
dbd287ed29
Update feeds.en.json
...
Removed Slashdot due to ssl errors
Signed-off-by: Sturtz Network <sturtz110751@indianola.k12.ia.us>
2020-10-08 09:54:10 +02:00
Sean Molenaar
4425e9da42
Fix Application class loading in config
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-10-05 09:48:28 +02:00
Sean Molenaar
49c6f7077d
Define microtime as string
...
Closes #835
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-10-05 09:47:44 +02:00
anoy
bfcf38a480
update only relevant item fields
...
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-10-04 21:35:31 +02:00
anoy
0fe6384085
trim whitespaces in item titles
...
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2020-10-04 20:10:15 +02:00
Gioele Falcetti
e8a1fd63fc
Fix 'news:updater:after-update' command
...
Signed-off-by: Gioele Falcetti <thegio.f@gmail.com>
2020-10-04 20:01:16 +02:00
anoy
d1b0e299f1
remove doubled execute
...
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2020-10-03 20:16:34 +02:00
Sean Molenaar
b9c31a73bd
DB: Fix mime checking
...
Signed-off-by: Sean Molenaar <sean@m2mobi.com>
2020-10-03 14:01:36 +02:00
Benjamin Brahmer
4e6acf9c68
fix matching any string
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2020-10-03 14:01:36 +02:00
Benjamin Brahmer
f7a3581f45
remove loggerParams
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2020-10-03 14:01:36 +02:00
Sean Molenaar
167dc70238
Fix various 15.0 bugs
...
Issue #821,#820,#819
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-10-03 14:01:36 +02:00
anoy
0d1ee15f86
fix invalid UserId when logged out
...
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2020-10-02 19:30:43 +02:00
anoy
4fffe42eb9
fix incorrect cron recommendation
...
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2020-10-02 15:43:06 +02:00
Sean Molenaar
e528361141
Add feed autodiscovery
...
Issue GH-415
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-09-29 21:15:53 +02:00
Sean Molenaar
35b53ecd40
OPML export command and fixes
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-09-29 14:56:07 +02:00
Sean Molenaar
bc01761221
Fix repair step and test it
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-09-29 13:02:03 +02:00
Sean Molenaar
d00d1ab2a2
Create V2 mapper, Service and management commands
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-09-27 15:35:31 +02:00
Benjamin Brahmer
66ce13a0c7
change statement for deleting items with help from @Talon24
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2020-09-25 19:18:04 +02:00
Sean Molenaar
60ab4941cc
Move to nextcloud config and update phpunit
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-09-25 19:18:04 +02:00
Benjamin Brahmer
3a62ffbe88
run phpcbf
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2020-09-17 10:23:43 +02:00
Felix
24d38662cb
Add tagesschau.de to feeds.de.json
...
According to their website, the RSS2 feed seems to be preferred and has images etc, which the Atom feed does not have.
Signed-off-by: Felix <22506886+felurx@users.noreply.github.com>
2020-09-13 19:04:44 +02:00
Benjamin Brahmer
9bb6bf691c
Fix UpdateInteval not being saved to config
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2020-09-02 08:31:10 +02:00
Gioele Falcetti
bf0e693e23
Fix crash if full-text is enabled and the news item does not provide an URL to be fetched
...
Signed-off-by: Gioele Falcetti <thegio.f@gmail.com>
2020-08-31 00:59:43 +02:00
Clemens
8dc21e1e16
Added Tarnkappe.info
...
Signed-off-by: Clemens <clemens@clemensknost.de>
2020-08-30 19:26:04 +02:00
Benjamin Brahmer
dd266ed05f
fix import with invalid guid_hash
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2020-08-29 23:45:26 +02:00
Sean Molenaar
b73c7c0f8a
Cleanup appinfo files
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-08-26 22:48:17 +02:00
Sean Molenaar
54630030c3
Add phpstan checks
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-08-25 20:52:48 +02:00
Benjamin Brahmer
4ebc906fef
Update to new BackgroudJob logic
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2020-08-14 18:22:57 +02:00
Rodrigo Aguilera
1619dd379d
Allow data URI scheme inside the body of an item.
...
Signed-off-by: Rodrigo Aguilera <hi@rodrigoaguilera.net>
2020-08-14 18:17:18 +02:00
David Engster
864794461f
Do not create spurious links in item body
...
The 'str_replace' will match any HTML element that starts with '<a',
including things like '<address' or '<article', thus creating spurious
links in item bodies. Fix that by simply adding one whitespace.
Fixes issue #527 .
Signed-off-by: David Engster <deng@randomsample.de>
2020-05-21 12:02:25 +02:00
Freddo
8b2c766384
Remove Totalbiscuit from Explore
...
As unfortunate as it is, John "TotalBiscuit" Bain passed away in 2018, with the last video uploaded to his channel being posted close to a year ago at this point. It is probably best to open up space for other feeds.
Signed-off-by: Freddo3000 <f.falk@protonmail.com>
2020-05-07 12:18:11 +02:00
Freddo3000
3b506a8530
Add feed: The Regimental Standard
...
https://regimental-standard.com/
Warhammer 40K themed newsletter providing humorous and uplifting news bulletins for the Imperial Guardsmen of the 42nd millenium.
Signed-off-by: Freddo3000 <f.falk@protonmail.com>
2020-05-07 12:17:20 +02:00
Chris Noxz
81d2407e6c
fix 'If-Modified-Since' causing BAD REQUEST ( #684 )
...
fix 'If-Modified-Since' causing BAD REQUEST
Signed-off-by: Chris Noxz <chris@noxz.tech>
Co-authored-by: kesselb <mail@danielkesselberg.de>
2020-04-28 18:25:34 +02:00
Cesar Enrique Garcia Dabo
5b4f3d29e4
Always show the unread articles.
...
The unread articles folder will always be visible, regardless
of the "Show all" setting. If that setting is on, then an
additional "All articles" folder will be show as before, but
it doesn't substitute the "Uread articles" one.
A new URL /apps/news/#/items/unread is also created that jumps
to the unread articles.
Signed-off-by: Cesar Enrique Garcia Dabo <cquike@arcor.de>
2020-04-23 12:37:24 +02:00
Maceček Richard
a69ec8edd8
Create feeds.cs.json
...
Signed-off-by: Maceček Richard <46937538+macecekrichard@users.noreply.github.com>
2020-04-23 12:15:36 +02:00
Daniel Kesselberg
95ef23b143
Check if $feed is null
...
and we are unable to continue because there is no valid feed data
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-03-09 23:03:30 +01:00
Talon24
cc051c6ce7
Different solution for ONLY_FULL_GROUP_BY (see #406 ) (Issue #80 ) ( #407 )
...
* Group by moved to subquery, get feed details from outer query (see #406 )
Signed-off-by: Talon <talontalon24@gmail.com>
2020-03-01 15:49:39 +01:00
Éloi Rivard
306d3cdc60
Basic Media-RSS support ( #599 )
...
Signed-off-by: Éloi Rivard <azmeuk@gmail.com>
2020-02-16 14:26:06 +01:00
Petros Koutsolampros
d27dddad25
Allow getContent() in Scraper and IScraper to return null ( #606 )
...
Allow getContent() in Scraper and IScraper to return null
2020-01-07 14:57:19 +01:00
kesselb
f045bd0ba3
Update httpLastModified from the feed response ( #594 )
...
LastModified is used (in a feed context to see if a user edited a feed). httpLastModified to store the last-modified response from the source.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2019-12-27 03:51:06 +01:00
DriverXX
6673cbc3d9
Reimplement full-text scraping ( #563 )
...
Add readability.php scraper
Fixes #482
Signed-off-by: Gioele Falcetti <thegio.f@gmail.com>
2019-12-24 09:33:19 +01:00
b_b
35c6c91e26
Get content:encoded of item if available ( #565 )
...
Get content:encoded of item if available fixes #564
Signed-off-by: brunob <bruno@eliaz.fr>
2019-11-16 14:21:40 +01:00
Paul Calabro
3c610a6378
Update feeds.en.json ( #557 )
...
Added the Lifehacker RSS feed
Signed-off-by: Paul Calabro <paulcalabro@users.noreply.github.com>
2019-10-19 13:08:45 +02:00
Benjamin Brahmer
ae99d52aad
Update to feedio 4+ ( #494 )
...
- bumped dependencies to last supported version
travis:
- removed php 7.0
- move main target to nc 16
- drop support for nc 14 & 15
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2019-08-16 07:57:34 +02:00
Carlos Silva
6c01164b9b
Add the 'Accept' header to the request ( #525 )
...
* Add the 'Accept' header to the request
Some firewalls block requests without the Accept header on the HTTP(s) request as seen on issue #517 ,
so, just add the header to all requests and say we accept anything.
Signed-off-by: Carlos Mogas da Silva <r3pek@r3pek.org>
* Use a more detailed Accept Header
Signed-off-by: Carlos Mogas da Silva <r3pek@r3pek.org>
* Split up long line
Signed-off-by: Carlos Mogas da Silva <r3pek@r3pek.org>
2019-08-16 07:14:20 +02:00
nachoparker
1a54c2abec
add "mark read" floating button mobile. Fixes #469 ( #505 )
...
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2019-05-11 10:08:14 +02:00
Daniel Opitz
10c0b1ff10
removed warning about non utf8mb4 charset for mysql/mariadb - #496 ( #497 )
...
Signed-off-by: Daniel Opitz <git@copynpaste.de>
2019-04-25 13:04:56 +02:00
Benjamin Brahmer
6410d92f3e
Use nextclouds temp dir ( #493 )
2019-04-11 12:59:05 +02:00
Sean Molenaar
1983ca1315
Set tmp dir as cache for favicon
2019-04-05 15:12:59 +02:00
Sean Molenaar
b37e237c7a
Fix xkcd commics
2019-03-26 09:31:03 +01:00
Sean Molenaar
62bd42cb17
Stop assuming encoding of xml, let simplexml throw silently ( #457 )
2019-03-22 09:19:05 +01:00
Sean Molenaar
c69bcb8e68
Allow empty-ish lastmodified and clean up FeedFetcher Test ( #458 )
2019-03-21 05:16:35 +01:00
Jasper Knockaert
84af098d01
reset modified since filter when updating feeds
...
When updating feeds the modified since date is added as a filter. This needs to be reset when looping over the feeds. Fixes #444 .
2019-03-20 07:51:45 +01:00
Sean Molenaar
9b915e24af
Use a copy of the FeedIO client that doesn't specify a useragent
2019-03-18 10:39:32 +01:00
Sean Molenaar
6ed63bdedd
Set nextcloud user agent
2019-03-18 10:39:32 +01:00
Sean Molenaar
2698214c41
fix/allow CDATA encoding ( #428 )
2019-03-17 08:23:37 +01:00
Sean Molenaar
f416213993
Fix email and password not being encoded
2019-03-12 19:58:06 +01:00
Sean Molenaar
9d5ac4b039
Catch FeedIO reader exception.
...
Closes #413
Closes #412
2019-03-12 13:30:05 +01:00
Simon Gilliot
67799e07b8
#413 DateTime::createFromFormat()
2019-03-11 08:33:14 +01:00
Sean Molenaar
71ba5a3ad1
Fix generation commands and make them available in ./occ ( #402 )
2019-03-06 13:10:37 +01:00
Sean Molenaar
7c17b2c24b
Allow empty update time
2019-02-23 16:11:28 +01:00
Sean Molenaar
ee6bb6ce70
Fix mismatched interface
2019-01-31 13:40:52 +01:00
Sean Molenaar
d61a57bd2d
Make feed failing more verbose
2019-01-31 10:23:56 +01:00
Sean Molenaar
a3246a927d
Parser: Switch to feedIO for parsing instead of picoFeed
2019-01-30 20:36:40 +01:00
Morris Jobke
9cd871983a
Merge pull request #382 from SMillerDev/codestyle_psr2
...
Define an official codestyle and adhere to it.
2019-01-28 22:32:49 +01:00
DriverXX
71ce148554
Return also folderId with "news:updater:all-feeds"
2019-01-10 10:35:48 +01:00
Sean Molenaar
becce6b752
Define an official codestyle and adhere to it.
2018-12-14 07:54:43 +01:00
Daniel Opitz
5c7fdb0853
remove some wrapping functions, define argument and response types, removed configuration of AppConfig as its not existing anymore
2018-12-04 17:09:28 +01:00
blackcrack
499bbe930f
add EFB.NU & New
...
add EFB.NU
http://www.essential-freebies.de/board/feed.php
a German Freeware,Share and OpenSource Board who be the members where posting News.
Any can make with and can posting News for WinNT Freeware. It's a Huge German Windows Software Board.
best regards
blacky
2018-10-22 10:27:38 +02:00
Alexander Grüßung
0bf1af1ee9
Update feeds.de.json
...
Added APPkosmos.de to explore file
2018-10-19 13:32:47 +02:00
Detlev Zundel
8337d2aa7d
Fix lastModified to be a string rather than an integer. ( #355 )
...
This fixes https://github.com/nextcloud/news/issues/350#issue-369283392
Signed-off-by: Detlev Zundel <dzu@member.fsf.org>
2018-10-14 18:53:53 +02:00
Benjamin Brahmer
68c656fea7
add date to export .opml
2018-10-04 10:27:59 +02:00
Daniel Opitz
89f2c7cfdb
add setters + getters to Folder and Item entities, fixed unit tests, rearranged methods
2018-09-28 23:24:10 +02:00
Daniel Opitz
2aabd8fd1f
fixed feed tests
2018-09-28 23:24:10 +02:00
Daniel Opitz
159986553b
add php7 types
2018-09-28 23:24:10 +02:00
Daniel Opitz
a3b5b516d2
add getters + setters for feed entity
2018-09-28 23:24:10 +02:00
Daniel Aleksandersen
dea3cebf2e
Restore a working User-Agent
...
The previous User-Agent was malformed. Using an old Chrome version now looks more suspicious. This version conforms and passes WAF just fine.
2018-09-12 03:36:42 +02:00
David Guillot
a84e80131a
feat(api): support new OC core login flow
...
* Base ApiController now needs IUserSession and extracts/serves IUser from it
* All other API controllers now inherit from ApiController
2018-07-01 23:01:54 +02:00
Sean Molenaar
5b94705cf3
Core: Fix compatibility with nextcloud codestyle ( #280 )
2018-03-27 15:35:06 +02:00
Sean Molenaar
17e85dd507
Unit: Fix unittests ( #278 )
...
* Unit: Fix unittests
Issue #171
* Tests: Move test namespace to the expected nextcloud namespace
2018-03-18 15:01:08 +01:00
Daniel S
65dc9f5b56
Add: German Feeds for t3n.de and netzpolitik.org ( #241 )
...
- Add: http://t3n.de/rss.xml as new discoverable source for tech news
- Add: https://netzpolitik.org/feed/ as source for network politics / news source
- See also: #240
2017-12-16 12:21:13 +01:00
Daniel Opitz
a97dd58e3b
Split binary to booleans ( #203 )
...
* replaced old status with 2 flags for unread and starred
* add fields to db, replace int(1,0) with booleans in sql queries, removed StatusFlags class + refactor code relying to it
* add repair step for migration
* again use integer(1,0) instead of bool in sql queries, because of sqlite doesn't support true/false
* add/fix unit tests for new boolean status
* set unread/starred flags as statements in sql
* fixed mysql unknown column items.unread, fixed marking of read items on repair step
* remove unnecessary bool casts
* add empty checks to Items::is* methods
* update migration to use native sql instead of the querybuilder
* don't cast the flags manually, let the api do the work
2017-08-14 10:34:53 +02:00
rakekniven
0fa82e88d7
Rakekniven patch 1 ( #204 )
...
* Update FeedFetcher.php
* Update part.content.warnings.php
* Update part.content.warnings.php
2017-07-13 16:52:30 +02:00
rakekniven
e09a146941
Update FeedFetcher.php ( #200 )
...
Small l10n fix
2017-07-09 09:04:04 +02:00
coderkun
68e3fa0172
Call cron beforeUpdate() before update() ( #172 ) ( #174 )
2017-06-03 13:32:57 +02:00
sonologic
774b4b6852
Fix #163 , use IDBConnection->supports4ByteText() ( #169 )
...
Instead of the buggy StatusService->hasIncorrectCharset, use
the already available IDBConnection->supports4ByteText() to
determine if 4byte unicode is supported.
2017-05-31 20:12:09 +02:00
Bernhard Posselt
42c57af9f8
better link
2017-05-24 20:52:23 +02:00
Bernhard Posselt
e64167ec0a
Fix #151 , Fix #145
2017-05-19 17:48:16 +02:00
Bernhard Posselt
53822bb4bc
add new apis
2017-05-13 21:35:17 +02:00
Bernhard Posselt
0dd88fad75
Fix #142
2017-05-02 19:48:29 +02:00
Robin Appelman
bc27596f70
Add postprocessor for getting lwn subscriber articles ( #72 )
2017-01-04 11:10:19 +01:00
Daniel Schaal
04f66c9710
Add updatedDate to item model ( #81 )
...
* Update picoFeed to v0.1.28
* Add updated_date to database and bump version to 10.1.1
* Add updatedDate to item model
* Check for updatedDate when updating a feed
* Fix unit test to check for newer updatedDate
2017-01-04 11:09:46 +01:00
Robin Appelman
547b977c49
use non depricated public api to register background job ( #59 )
2016-11-25 09:57:35 +01:00
Daniel Schaal
f658beaf61
Throw ServiceNotFoundException when marking non-existent item as read ( #61 )
...
* Throw ServiceNotFoundException when marking non-existent item as read
Fixes #58
* Add test case for marking non-existent item as read
2016-11-18 16:03:31 +01:00
anoy
865cfa566a
fix explore feed urls, add feed suggestion ( #50 )
...
* fixed feed urls for 'Golem' and 'heise online'
* blog suggestion: 'Kuketz IT-Security Blog'
2016-11-02 20:03:27 +01:00
Bernhard Posselt
8d63975360
revert
2016-10-02 18:05:49 +02:00
Daniel Schaal
e45511f6ba
Add updatedDate to item model ( #43 )
...
* Update picoFeed to 0.1.25
* Add updated_date to database
* Add updatedDate to item model
* Bump version to 9.0.5
* Check for updatedDate when updating a feed
* Fix unit test to check for newer updatedDate
2016-10-01 08:34:40 +02:00
Timo Schmidt
a26186f443
Implementation for issue https://github.com/nextcloud/news/issues/38
...
Instead of the array return type use component parameter PHP_URL_HOST
to get the host part from the URL as string. This avoids an undefined
index warning if host part could not be found.
2016-09-20 19:45:52 +02:00
Bernhard Posselt
c58b907917
fix last modified cropping
2016-08-28 09:12:45 +02:00
Bernhard Posselt
575a10ec2d
fix last modified cropping
2016-08-28 09:11:53 +02:00
Bernhard Posselt
1f6af77fff
only pad old timestamps
2016-08-28 08:56:45 +02:00
Bernhard Posselt
1576df5492
Merge pull request #25 from nextcloud/updated-api
...
Fix #24
2016-08-28 08:37:56 +02:00
Bernhard Posselt
4acfe5ab74
Fix #24
2016-08-28 08:36:42 +02:00
Bernhard Posselt
6236915770
Delete Upgrade.php
2016-08-25 22:50:38 +02:00
Bernhard Posselt
360a9f3054
Fix #20
2016-08-23 20:07:40 +02:00
Bernhard Posselt
4ff179dc80
derp2
2016-08-18 22:08:23 +02:00