Commit Graph

7003 Commits

Author SHA1 Message Date
Alexis Degrugillier
dc68783fc8 Add controls on media (#3036)
Now, there is a shortcut to play or pause media available from an
entry. If there is more than one media available, only the first
one will be targeted.

See #1952
2020-06-05 23:37:05 +02:00
Alexis Degrugillier
8c4d71da2e Add missing translations (#3034)
* Add missing translations

* Add a simple way to check if an i18n key exists

There is a rule in the makefile to access it directly
2020-06-05 20:16:04 +02:00
Alexis Degrugillier
36bda2e715 Add language detection when the user is not logged in (#3022)
Before, when the user was not logged in, pages where translated with the '_' user language.
Now, they are translated with the user preferred language if there is one supported by FreshRSS or with the system default language.
2020-06-05 10:10:46 +02:00
Alexis Degrugillier
d4554fa087 Change add feed action (#3027)
* Docker Alpine 3.12 (#3025)

https://alpinelinux.org/posts/Alpine-3.12.0-released.html
With PHP 7.3.18 (from 7.3.17) (and Apache 2.4.43 unchanged).
No other significant change spotted

* Ensure feed attributes are used before load

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2020-06-05 10:09:31 +02:00
Alexis Degrugillier
27f0b61418 Fix form layout (#3028)
The login form layout was broken for BlueLagoon and Screwdriver themes. The 'about' link was
displayed next to the form since the later didn't have a height. I removed completely the
rule since it seems that it has no effect, except the one aforementioned.
2020-06-03 19:17:17 +02:00
Alexandre Alapetite
0085b5e0c1 Docker Alpine 3.12 (#3025)
https://alpinelinux.org/posts/Alpine-3.12.0-released.html
With PHP 7.3.18 (from 7.3.17) (and Apache 2.4.43 unchanged).
No other significant change spotted
2020-06-01 13:13:12 +02:00
Brooke
d4c98e2637 Updates PHPMailer to 6.1.6 (#3024)
* Update PHPMailer to 6.1.6

Fixes a security issue in PHPMailer 6.1.5 and earlier

* Remove .DS_Store
2020-06-01 12:22:57 +02:00
Tibor Repček
2a4fed6c23 Update gen.php (#3020) 2020-05-31 22:32:37 +02:00
Alexandre Alapetite
0ddb4b7383 Start 1.16.3-dev 2020-05-31 22:32:13 +02:00
Alexandre Alapetite
38802f6fbc Release FreshRSS 1.16.2 1.16.2 2020-05-31 21:11:48 +02:00
Alexandre Alapetite
e58ad65902 Fix display_categories upgrade from 1.16.0 again (#3019)
* Fix display_categories upgrade from 1.16.0 again

#fix https://github.com/FreshRSS/FreshRSS/issues/3017
Follow-up of https://github.com/FreshRSS/FreshRSS/pull/3018
There were two bugs. I forgot that `ConfigurationSetter.php` is not
called when reading `config.php`

* Changelog 3019
2020-05-30 22:48:00 +02:00
Alexandre Alapetite
b4649b640f Changelog 3018 2020-05-30 21:13:34 +02:00
Alexandre Alapetite
f6bfcba827 Fix display_categories upgrade from 1.16.0 (#3018)
* Fix display_categories upgrade from 1.16.0

#fix https://github.com/FreshRSS/FreshRSS/issues/3017
The property `'display_categories' => boolean,` in 1.16.0 is not properly converted to `'display_categories' => 'string',` in 1.16.1 due to a weak type comparison bug.
2020-05-30 21:06:46 +02:00
Alexandre Alapetite
5910009c21 Start next version 1.16.2-dev 2020-05-30 19:40:03 +02:00
Alexandre Alapetite
1b85fa7145 Release FreshRSS 1.16.1 1.16.1 2020-05-30 15:12:24 +02:00
Alexandre Alapetite
17baf9970f Fix alert-warn background (#3015)
Fix minor CSS regression from
https://github.com/FreshRSS/FreshRSS/pull/2990
2020-05-30 14:36:46 +02:00
Alexandre Alapetite
c167095497 Changelog 2020-05-30 12:21:42 +02:00
Alexandre Alapetite
fe1e02dab9 Fix PostgreSQL database auto-create with limited rights (#3013)
* Fix PostgreSQL database auto-create with limited rights

#fix https://github.com/FreshRSS/FreshRSS/issues/3009
Install would fail if the user is not even allowed to connect to the default `postgres` database.

* Confused by custom Minz_PDOConnectionException
2020-05-29 23:55:53 +02:00
Alexis Degrugillier
19b94b648b Add a make rule to refresh feeds (#3014) 2020-05-29 20:55:41 +02:00
Frans de Jonge
cf13507349 [i18n] Add a make pot command to Makefile (#3006)
By analogy with <https://github.com/FreshRSS/FreshRSS/pull/2996>.
2020-05-28 23:21:23 +02:00
Alexis Degrugillier
f05408a2e5 Fix makefile when no local php (#3010)
The makefile did not work when there was no local php.
2020-05-28 23:20:53 +02:00
Frans de Jonge
015cd1e06e [i18n] Update Dutch translation for 1.16.1 (#3005)
See <https://github.com/FreshRSS/FreshRSS/issues/2994>.
2020-05-26 17:04:59 +02:00
Marien Fressinaud
97881628eb tec: Add a make lint command in the Makefile (#2996) 2020-05-25 19:06:23 +02:00
Alexandre Alapetite
0d74cb8a42 Fix JS show password in install (#2999)
The button for showing the password was not working in the install.
Updated JavaScript file to ES6 at the same time.
2020-05-25 19:03:42 +02:00
Alexandre Alapetite
4b2698ff55 Alternative-Dark theme use common template (#3000)
* Alternative-Dark theme use common template

#fix https://github.com/FreshRSS/FreshRSS/issues/2883

* Lint
2020-05-25 19:03:10 +02:00
Alexandre Alapetite
e1ef88d815 Fix memory leak when using lib_phpQuery (#3004)
* Fix memory leak when using lib_phpQuery

This library keeps documents in static class, so it requires a special
call to clean them.

* Another unload
2020-05-25 16:02:52 +02:00
Marien Fressinaud
a0f6e66e28 fix: Fix .stick class for older Webkit versions (#2995)
It looks like inputs had a light margin on older Webkit versions, making
the inputs slightly smaller than buttons in a .stick container.

Reference: https://github.com/FreshRSS/FreshRSS/pull/2938#issuecomment-632429861
2020-05-22 10:54:22 +02:00
Alexandre Alapetite
a854dc7b5b Credits 1.16.1 2020-05-21 22:13:25 +02:00
Alexandre Alapetite
da5a38e74c Changelog 2020-05-21 21:50:28 +02:00
Alexandre Alapetite
39df5a8041 Revert FOUC fix (#2991)
Revert https://github.com/FreshRSS/FreshRSS/pull/2913
I have not seen any difference with/without this fix, and it might be
due to the fact that is is blocked by CSP.
At least in Chrome, it generates CSP warnings.
If it should be re-introduced, see warning suggestions:

> Refused to execute inline script because it violates the following
Content Security Policy directive: "default-src 'self'". Either the
'unsafe-inline' keyword, a hash
('sha256-gcoEgwf1rABkUXPaVY2M1RH34tUHWGDn9nAAn/kGYUE='), or a nonce
('nonce-...') is required to enable inline execution. Note also that
'script-src' was not explicitly set, so 'default-src' is used as a
fallback.
2020-05-21 20:55:28 +02:00
Alexandre Alapetite
857f588790 Fix fetch preview (#2993)
* Fix fetch preview

#fix https://github.com/FreshRSS/FreshRSS/issues/2923
In MariaDB / MySQL, we cannot start a new query if we have not consumed
the previous buffered query fully.

* Fix for reload

* Typo in comment
2020-05-21 20:55:06 +02:00
Marien Fressinaud
df9d3ab468 Add documentation for i18n (#2978)
* doc: Write proper doc for internationalization

* Apply suggestions from code review

Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>

* Update docs/en/internationalization.md

Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>

Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
2020-05-21 12:21:20 +02:00
Alexandre Alapetite
3bef867a44 Better hide spinner (#2990)
Fix https://github.com/FreshRSS/FreshRSS/issues/2986#issuecomment-631396735
By CSS, and also by JS
https://framagit.org/nicofrand/xextension-threepanesview/-/issues/10
2020-05-21 12:17:21 +02:00
Alexandre Alapetite
b906d79d61 getContentByParsing follow HTML redirections (#2985)
* getContentByParsing follow HTML redirections

Add the ability to follow HTML redirections in getContentByParsing:

```html
<meta http-equiv="Refresh" content="1; url=https://example.net/article123.html" />
```

* Better regex

* Trim http-equiv
2020-05-21 11:56:55 +02:00
Alexandre Alapetite
d9a2889c3f Changelog 2020-05-21 01:32:50 +02:00
Alexandre Alapetite
533ac05f4e Fix Dark load (#2987)
#fix https://github.com/FreshRSS/FreshRSS/issues/2986 😈😛
2020-05-20 12:02:01 +02:00
Alexandre Alapetite
0442243037 Fix nav_menu mark-as-read (#2909)
* Fix nav_menu mark-as-read

#Fix https://github.com/FreshRSS/FreshRSS/issues/2905
Fix regression from https://github.com/FreshRSS/FreshRSS/pull/2588

We need info about the first item (id_max) before being able to output
nav_menu. Before https://github.com/FreshRSS/FreshRSS/pull/2588 we used
to output everything in memory before starting to produce an output. Now
that we stream the output, we need a temporary buffer until we have
received the first item/article.

* Repair loading page

* Simplify CSS

Make it work in Chrome as well

* Lint

* Partial revert

* Base max_id solely on current time
2020-05-18 18:45:47 +02:00
Brooke
fa56f90223 Update/php mailer (#2980)
* Update PHPMailer to  6.1.5

This PR update the bundled version of PHPMAiler
2020-05-18 09:42:04 +02:00
Alexandre Alapetite
83b5944dcb Stream instead of memory copy of SimplePie entries (#2972)
* Stream instead of memory copy of SimplePie entries

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

* Undo lines delete

* Typo

* Remove unaccessible code

https://github.com/FreshRSS/FreshRSS/pull/2972/files#r425624163

* Back-compatibility for Feed->entries

https://github.com/FreshRSS/FreshRSS/pull/2972/files#r425631913
2020-05-17 00:04:51 +02:00
Alexandre Alapetite
525e1ca0b0 Relaxed OPML - allow other elements than outline (#2983)
#fix https://github.com/FreshRSS/FreshRSS/issues/2981
Relax OPML
2020-05-16 19:12:42 +02:00
Alexandre Alapetite
bba9535626 jQuery 3.5.1 (#2982)
Minor version
https://blog.jquery.com/2020/05/04/jquery-3-5-1-released-fixing-a-regression/
2020-05-16 16:44:15 +02:00
Alexandre Alapetite
6f3e5d99b4 Revert to STDOUT for cron messages (#2979)
#fix https://github.com/FreshRSS/FreshRSS/issues/2975
2020-05-15 18:23:15 +02:00
Alexandre Alapetite
554ac88d98 Table overview of compatible clients (Help welcome) (#2942)
* Table overview of compatible clients

I found it difficult - especially for newcomers - to find and pick a
client, and I believe a table would help.
Help welcome to fill-in the blancs.

* Use 

Instead of 

* A bit more info on Unread

* FeedMe 3.15

FeedMe 3.15 beta added support for Podcasts in FreshRSS :-)

* A bit of re-ordering

* FeedMe partial support of labels

* A bit for Reeder

* Reeder, Augier

* French version
2020-05-15 18:20:29 +02:00
Marien Fressinaud
8487fa6248 Reformat i18n correctly (#2976)
* Ignore i18n gen.dir key

* Add a makefile target to update an i18n key

* Mark some i18n keys to ignore

* Reformat i18n files correctly

* Make i18n keys sort case-sensitive

Calling `make i18n-format` was always inverting 4 lines:

- gen.date.dec with gen.date.Dec
- and gen.date.nov with gen.date.Nov

I don't know why these particular lines and not the others, but it
appeared the sort function was case insensitive due to the
`SORT_FLAG_CASE` flag passed to the `ksort` function. Removing this flag
makes the calls to the formatter idempotent and more reliable.

Unfortunately it moves a lot of lines since the `_` character is
considered differently.

* Check i18n files are correctly formatted on Travis
2020-05-15 17:31:21 +02:00
Craig Andrews
62a42a2063 Delay the feeds actualization start notice (#2974)
* Delay the feeds actualization start notice

Move the actualization start notice until after SIMPLEPIE_SYSLOG_ENABLED is defined.

Fixes https://github.com/FreshRSS/FreshRSS/issues/2973

* Update app/actualize_script.php

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2020-05-15 17:23:20 +02:00
Alexandre Alapetite
11dd6e91b7 Improve logs during cron actualization (#2964)
For
https://github.com/FreshRSS/FreshRSS/issues/2952#issuecomment-626218921
And fix a little bug writing logs with the wrong user name
2020-05-14 21:21:39 +02:00
Mike Vanbuskirk
65b55d2d58 fixes #2931 (#2970) 2020-05-14 08:39:09 +02:00
Alexandre Alapetite
058d13de70 CLI user-info JSON option (#2968)
* CLI user-info JSON option

Add a JSON user-info output
https://github.com/FreshRSS/FreshRSS/issues/2967#issuecomment-627441744

* Uses ISO Zulu time

* Typo
2020-05-12 22:48:33 +02:00
Alexandre Alapetite
df9c0ae6f1 Fix Docker FRESHRSS_ENV for cron (#2963)
cron job was not passed the environment variable FRESHRSS_ENV as it
should
This resulted in messages during cron to not be logged according to
FRESHRSS_ENV level
2020-05-12 22:47:13 +02:00
Alexandre Alapetite
2bbc579d72 Add lang and mail in CLI user-info (#2958)
* Add lang and mail in CLI user-info

Anf update documentation after
https://github.com/FreshRSS/FreshRSS/pull/2296

* iff and language
2020-05-11 17:45:08 +02:00