1
0
mirror of https://github.com/chylex/Nextcloud-News.git synced 2024-11-22 16:42:47 +01:00
Commit Graph

70 Commits

Author SHA1 Message Date
Sean Molenaar
54630030c3 Add phpstan checks
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-08-25 20:52:48 +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
Éloi Rivard
306d3cdc60
Basic Media-RSS support (#599)
Signed-off-by: Éloi Rivard <azmeuk@gmail.com>
2020-02-16 14:26:06 +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
2698214c41 fix/allow CDATA encoding (#428) 2019-03-17 08:23:37 +01:00
Sean Molenaar
a3246a927d
Parser: Switch to feedIO for parsing instead of picoFeed 2019-01-30 20:36:40 +01:00
Sean Molenaar
becce6b752 Define an official codestyle and adhere to it. 2018-12-14 07:54:43 +01: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
Daniel Opitz
89f2c7cfdb add setters + getters to Folder and Item entities, fixed unit tests, rearranged methods 2018-09-28 23:24:10 +02:00
Sean Molenaar
5b94705cf3 Core: Fix compatibility with nextcloud codestyle (#280) 2018-03-27 15:35:06 +02: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
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
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
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
360a9f3054 Fix #20 2016-08-23 20:07:40 +02:00
Bernhard Posselt
44792ace5b Try without 64bit requirement 2016-08-18 21:07:21 +02:00
Bernhard Posselt
7a3a22bd27 Adjust copyright header 2016-07-23 21:32:42 +02:00
Bernhard Posselt
004fcbbcc7 Move to new directory structure 2016-07-23 21:24:54 +02:00