Commit Graph

125 Commits

Author SHA1 Message Date
Alexandre Alapetite
5872a11eb7 cleanOldEntries call autoUpdateDb (#1804)
* cleanOldEntries call autoUpdateDb

https://github.com/FreshRSS/FreshRSS/issues/1803

* Fix feedDAO autoUpdateDb

* Move cleanOldEntries to EntryDAO

Only the entry table is concerned
2018-03-01 19:25:40 +01:00
Django Janny
80168545ea param name 2018-02-05 20:48:16 +01:00
Django Janny
5faa7aaf66 Trim spaces from user given url 2018-02-02 13:59:48 +01:00
Alexis Degrugillier
7642d334f8 Replace "keep history" magic value by a constant (#1759)
I think the use of a magic value repeated many times in the code is prone to have some errors made by people not knowing its meaning. Using a constant is a bit more safe. Judging by some comments in the code, I am not the only one.
2018-01-02 23:53:35 +01:00
Alexis Degrugillier
8c2113f9e6 Add mute strategy configuration (#1750) 2018-01-01 20:34:06 +01:00
Kevin Papst
62e9db55b2 fixed bug when adding a category and feed at the same time (#1731)
fixed bug when adding a category and feed at the same time
2017-12-17 16:36:48 +01:00
Alexandre Alapetite
b1c317a253 Log rotation, use Minz_Log, new log constants
ADMIN_LOG, API_LOG, PSHB_LOG
2017-12-10 21:58:24 +01:00
Alexandre Alapetite
28db5dd285 Fix SQL constraint insert into entrytmp table
https://github.com/FreshRSS/FreshRSS/issues/1614
2017-09-23 12:32:35 +02:00
Frans de Jonge
4e174ed9dd [ci] Add Travis (#1619)
* [ci] Add Travis

* Exclude some libs

* Semi-auto whitespace fixes

* line length in SQLite

* Exclude tests from line length

* Feed.php line length

* Feed.php: get rid of unnecessary concat

* Feed.php: line length

* bootstrap.php: no newline at end of file

* Allow concatenating across multiple lines

* Add Travis badge

* do-install line length

* update-or-create-user line length

* cli/create-user line length

* tests/app/Models/SearchTest.php fix indentation

* tests/app/Models/UserQueryTest.php fix indentation

* tests/app/Models/CategoryTest.php fix indentation

* [fix] PHP 5.3 on precise

* cli/do-install no spaces

* cli/list-users line length

* cli/reconfigure line length

* empty catch statements

* api/index line length nonsense

* spaces before semicolon

* app/Models/EntryDAO bunch of indentation

* extra blank lines

* spaces before comma in function call

* testing tabwidth

* increase to 10

* comment out tabwidth line

* try older phpcs version 3.0.0RC4

* line length exception for app/install.php

* proper spaces

* stray spaces in i18n

* Minz/ModelPdo line length

* Minz whitespace

* greader line length

* greader elseif placement

* app/Models/Feed.php spacing in function argument

* ignore php 5.3

* app/Models/ConfigurationSetter.php stray whitespace

* EntryDAOSQLite line length

* I vote for higher max line length =P

* ignore SQL

* remove classname complaint

* line length/more legible SQL

* ignore line length nonsense

* greader line length

* feedController issues

* uppercase TRUE, FALSE, NULL

* revert

* importExportController lowercase null

* Share.php default value not necessary because ! is_array () a few lines down

* CategoryDAO constants should be UPPERCASE

* EntryDAO reduce line length

* contentious autofix

* Allow failures on all versions of PHP except 7.1 because reasons
2017-09-22 12:13:46 +02:00
Alexandre Alapetite
a4aef7bf83 Fix *mark as read* articles when adding a new feed
https://github.com/FreshRSS/FreshRSS/issues/1535
2017-05-25 13:03:55 +02:00
Seokseong Jeon
0bc59ba140 Make actualizeFeed returns values consistent&safe 2017-05-05 17:18:16 +09:00
Seokseong Jeon
cb897980cd Merge branch 'dev' into cli-act-num-articles 2017-05-05 01:43:34 +09:00
Seokseong Jeon
09787cfd7a actualizeFeed return number of new articles as 3rd 2017-05-03 22:56:56 +09:00
Alexandre Alapetite
0d4c26c673 Add manual commit & refresh cache to deferred insertion 2017-03-29 21:42:40 +02:00
Alexandre Alapetite
6c604bc1dd Minz param bug fix 2017-03-27 23:42:19 +02:00
Alexandre Alapetite
56bbdc543d Removing TODO
Done
2017-03-27 22:16:59 +02:00
Alexandre Alapetite
282ea0cfd7 Defered insertion: feedController bug 2017-03-27 22:09:18 +02:00
Alexandre Alapetite
5541e39512 More defered insertion 2017-03-27 21:26:38 +02:00
Alexandre Alapetite
e956aee53d More defered insertion. New SQL index
New index entry_feed_read_index
TODO: Auto add this index to existing version
2017-03-26 14:07:06 +02:00
Alexandre Alapetite
a20fd9db9f Defered insertion MySQL bug
The update of cached values remains to be optimized
2017-03-26 01:41:08 +01:00
Alexandre Alapetite
22b41f3bfc Candidate implementation of defered insertion
https://github.com/FreshRSS/FreshRSS/issues/530
2017-03-26 00:01:11 +01:00
Alexandre Alapetite
aeda49a7d2 Add CLI for user information + Fix last user activity
https://github.com/FreshRSS/FreshRSS/issues/1345
2016-11-05 20:48:46 +01:00
Alexandre Alapetite
1b8eb6c7e7 CLI import ZIP/OPML/JSON for user
https://github.com/FreshRSS/FreshRSS/issues/1095
https://github.com/FreshRSS/FreshRSS/issues/851
2016-10-23 01:46:14 +02:00
Alexandre Alapetite
7f2b0439ec Extract function safe_ascii() 2016-10-20 01:38:23 +02:00
Alexandre Alapetite
1893fc61e0 guid and urls should not contain low/high characters
It looks like SimplePie does not always filter everything
Having a character not in latin1 would create MySQL collate errors
2016-10-20 01:19:59 +02:00
Alexandre Alapetite
ca4dcca5b2 PSHB bugs
Introduced by https://github.com/FreshRSS/FreshRSS/pull/1280
2016-10-07 21:46:48 +02:00
Alexandre Alapetite
fe65eec5bb Better multiuser update 2016-10-05 17:48:24 +02:00
Alexandre Alapetite
9e34d7275e Typo 2016-10-05 00:44:14 +02:00
Alexandre Alapetite
05cabe99ae Take better advantage of other users refresh 2016-10-05 00:39:54 +02:00
Alexandre Alapetite
d5ca360ca9 API fix feed rename
https://github.com/FreshRSS/FreshRSS/issues/1254

https://github.com/jangernert/FeedReader/issues/59#issuecomment-249558202
2016-09-26 15:20:02 +02:00
Alexandre Alapetite
9291748c47 API implement user-info and fix edits
https://github.com/FreshRSS/FreshRSS/issues/1254

https://github.com/jangernert/FeedReader/issues/59#issuecomment-249491580
2016-09-26 10:44:44 +02:00
Alexandre Alapetite
71b98a0ffc API add feed 2016-09-25 00:14:36 +02:00
Alexandre Alapetite
324c83348c Refactor controller add feed 2016-09-24 23:29:49 +02:00
Alexandre Alapetite
0a79d4085b Refactor controller for actualize feed 2016-09-24 20:43:52 +02:00
Alexandre Alapetite
6a812b0d31 API rename feed 2016-09-24 19:54:46 +02:00
Alexandre Alapetite
d6b4186040 API implement delete feed + refactor move feed 2016-09-24 19:26:40 +02:00
Alexandre Alapetite
44f22ab8b4 API move feed to another category
https://github.com/jangernert/FeedReader/issues/59
https://github.com/FreshRSS/FreshRSS/issues/443
2016-09-24 17:36:33 +02:00
Alexandre Alapetite
fe18d12551 Update MySQL to utf8mb4 (full unicode) 🔥
* Requires MySQL 5.5.3+ (drop support for MySQL 5.0)
* Requires PHP 5.3.3+ (drop support for PHP 5.3.0)
https://github.com/FreshRSS/FreshRSS/issues/789#issuecomment-73878076
2016-07-30 18:45:34 +02:00
Alexandre Alapetite
91593cecd2 But when adding feeds with passwords
https://github.com/FreshRSS/FreshRSS/issues/1131
2016-04-24 14:50:31 +02:00
Alexandre Alapetite
7f91dbf16d SQLite: Articles from old FreshRSS are marked as unread on update
Bug fixed https://github.com/FreshRSS/FreshRSS/issues/1049
2016-03-06 15:32:58 +01:00
Alexandre Alapetite
05ba5bc569 Do not log article updates
It seems to work well, and there are too many such updates.
BTW, we should have a verbose/insane log level.
2016-02-22 21:10:35 +01:00
Alexandre Alapetite
481c2a6719 Clean logs
Reduced login of API and PubSubHubbub (both are quite stable now).
When clearing logs as admin, also clear API and PubSubHubbub logs.
https://github.com/FreshRSS/FreshRSS/issues/988
2015-10-24 22:25:48 +02:00
Marien Fressinaud
f4472fc918 Do not use PubSubHubbub if disabled
See https://github.com/FreshRSS/FreshRSS/issues/865
2015-07-23 13:59:40 +02:00
Alexandre Alapetite
079150eee4 Updated log visibility
In particular, ensure that ERROR is only used for errors that may affect
FreshRSS integrity, and ensure that feed errors are visible also in
production, i.e. visibility of WARNING
https://github.com/FreshRSS/FreshRSS/issues/885
https://github.com/FreshRSS/FreshRSS/issues/884
2015-07-03 23:47:18 +02:00
Alexandre Alapetite
8a131b056e Force autocomplete off
https://github.com/FreshRSS/FreshRSS/issues/880
Put a space in the user field instead of empty to avoid autocomplete.
Use feed ID in the username/password field name.
2015-06-14 16:22:33 +02:00
Alexandre Alapetite
694dfa1f8b PubSubHubbub: remove white list
The tests so far are good. Ready to test more broadly.
https://github.com/FreshRSS/FreshRSS/pull/831
https://github.com/FreshRSS/FreshRSS/issues/312
2015-05-23 16:37:08 +02:00
Alexandre Alapetite
001c713f03 PubSubHubbub better gestion of errors
Do not assume that PubSubHubbub works until the first successul push
https://github.com/FreshRSS/FreshRSS/issues/312#issuecomment-102706500
2015-05-17 22:06:11 +02:00
Alexandre Alapetite
84ea636d2d PubSubHubbub bug skip pull
Do not pull refresh feeds that are PubSubHubbub too often during cron
refresh.
And more debugging info during the test phase.
https://github.com/FreshRSS/FreshRSS/pull/831
2015-05-16 23:44:36 +02:00
Alexandre Alapetite
3adab4b70f More PubSubHubbub
https://github.com/FreshRSS/FreshRSS/issues/312
Show whether PubSubHubbub is enabled in the Web interface of feed
configuration.
When PubSubHubbub is used, do not pull refresh so often (hard-coded to
max once per 24h for now).
Improved logic for lease renewal, and some detection of lease problems.
Updated read-me and changelog.
2015-05-16 13:05:43 +02:00
Alexandre Alapetite
18831a89ef PubSubHubbub active only when refreshing, not adding a feed
https://github.com/FreshRSS/FreshRSS/issues/312
2015-05-15 15:46:51 +02:00