Commit Graph

5572 Commits

Author SHA1 Message Date
Alexandre Alapetite
bb6bc8fe2c i18n fix percent_of_total (#5232)
Fix double `%%` (escaping not needed anymore for strings not using an sprintf construction since https://github.com/FreshRSS/FreshRSS/pull/5022)
2023-03-29 21:29:51 +02:00
Alexandre Alapetite
ab49ee6c0c Increase time limit import OPML (#5231)
Importing an OPML file can take a long time.
While waiting for a better way to customize, let's give it more time, like other slow functions
2023-03-28 14:24:36 +02:00
Luc SANCHEZ
ac3dd96f48 Cleaning code and typehinting (#5064)
* Cleaning code and typehinting

* Fix remarque alphabetic order

* Cleaning

* rollback self::

* Update Context.php

* Fix remarques

* Fix remarques

* Fix remarques

* Remarque's from Alkarex

* Remarque's from Alkarex

* Cast higher up

* Fix Level 5

* Claiming Level 6
Cf. https://github.com/FreshRSS/FreshRSS/pull/5230

* Address my comments

* indexController as Level 6 as well

* Fixed some wrong types

---------

Co-authored-by: Luc <sanchezluc+freshrss@gmail.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-03-27 01:12:45 +02:00
Luc SANCHEZ
0317683155 Add test and type hinting (#5087)
* - Add test and type hinting
- pass PhpStan Level 9

* fix dump

* fix style

* fix visibility

* fix style

* add test

* add test

* add test

* add test

* add test

* Simplify

* cleaning after test

* remove space

* fix style

* use specific log file for test

* Remarque's from Alkarex

* A few more details

---------

Co-authored-by: Luc <sanchezluc+freshrss@gmail.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-03-27 00:36:21 +02:00
Alexandre Alapetite
f3af3f0f3d Automated test towards PHPStan level 6 (#5230)
* Automated test towards PHPStan level 6
Contributes to https://github.com/FreshRSS/FreshRSS/issues/4112
With this automated tests, files that are passing Level 6 are tested to avoid regressions towards Level 5 (which is the current baseline for the whole code-base)

It is included when calling `make test-all` or can be called specifically by `composer run-script phpstan-next`

* Test and example with 3 new passing files
2023-03-26 23:19:41 +02:00
maTh
05e10f0e75 Improved: Dark mode of Origine (#5229)
* fix

* fix button
2023-03-26 21:55:46 +02:00
Rufubi
9604856482 [Docker] Listening for IPv6 connections (#5180)
* Listen for IPv6 connections

* Added information about LISTEN6 variable

* Make LISTEN variable a comma-separated list of values

* Removed debug commands

* Revert changes

---------

Co-authored-by: Rufubi <>
2023-03-26 21:50:27 +02:00
Alexandre Alapetite
1ee2a3d72d Fix repartitionAction (#5228)
* Fix repartitionAction
Fix https://github.com/FreshRSS/FreshRSS/issues/5227

* Better types

* PHPStan level 6
2023-03-26 21:42:56 +02:00
maTh
59c1405c7d TOS in footer (#5222)
* footer added

* register page
2023-03-26 14:18:05 +02:00
Luc SANCHEZ
5f898dcc5e Modernize Constants and use new constant for string 'currentUser' (#5089)
* Modernize Constants and use new constant 'currentUser'

* Add FreshRSS_Context::currentUser() function and use

* Add FreshRSS_Context::currentUser() function and use

* Add FreshRSS_Context::currentUser() function and use

* Add FreshRSS_Context::currentUser() function and use

* Add FreshRSS_Context::currentUser() function and use

* Update app/Controllers/userController.php

* Update app/Controllers/userController.php

* Update app/Controllers/userController.php

* Update app/Models/Auth.php

* Update p/api/greader.php

* Update p/api/greader.php

* Update p/api/greader.php

* Update app/Models/Context.php

* Update app/Models/LogDAO.php

* Update lib/Minz/Log.php

* Update p/api/greader.php

* Update app/layout/header.phtml

* Update app/views/helpers/export/articles.phtml

* Update cli/do-install.php

* Remarque's from Alkarex

* Remarque's from Alkarex

* Refactor using new Minz_User class

* Consistent naming of public constants

---------

Co-authored-by: Luc <sanchezluc+freshrss@gmail.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-03-26 14:17:22 +02:00
Alexandre Alapetite
df24fa2207 Fix warning when tagging entries (#5221)
```
File not found: `/views/tag/tagEntry.phtml`
```

Because we had no view file for this call.
2023-03-24 23:44:05 +01:00
Alexandre Alapetite
e750448f5b Consistent entry ID type (32-bit compatibility) (#5213)
* Remove FreshRSS_Searchable for better types
The interface was not used, and it was preventing more precise types for the different `searchById()` methods, as they each have different input and output types.

* Consistent entry ID
Entry IDs (which are 64-bit integers) must be processed as string to be compatible with 32-bit platforms

* Fix type

* A few more related types

* PHPStan level 6

* Some more casts needed

* String cast for htmlspecialchars
2023-03-22 09:57:31 +01:00
Alexandre Alapetite
1a0616562d Remove FreshRSS_Searchable for better types (#5212)
* Remove FreshRSS_Searchable for better types
The interface was not used, and it was preventing more precise types for the different `searchById()` methods, as they each have different input and output types.

* Fix type
2023-03-22 08:26:39 +01:00
Luc SANCHEZ
247215ffaa Typehint some Controllers (#5106)
* Typehint to Controllers

* Remarque's from Alkarex

* Remarque's from Alkarex

* Remarque's from Alkarex

* Remarque's from Alkarex

* Remarque's from Alkarex

* Remarque's from Alkarex

---------

Co-authored-by: Luc <sanchezluc+freshrss@gmail.com>
2023-03-21 18:57:57 +01:00
maTh
e679d3df0e Improved: show Terms of Service in config menu (#5215)
* Use constants for path to TOS

* improve comments

* TOS title moved to template

* TOS available via config menu

* CSS: improve handling of content of TOS/about

* give info about set/unset TOS in system config

* fix target

* i18n FR

* i18n DE
2023-03-21 18:47:07 +01:00
maTh
34f62896ac fix: jump to next button: div -> span (#5216) 2023-03-19 22:33:23 +01:00
Alexandre Alapetite
9b424a8fd8 FeverAPI fix enclosures (#5214)
Fix regression: provide enclosures as part of HTML content body in FeverAPI
#fix https://github.com/FreshRSS/FreshRSS/issues/5209
2023-03-19 17:11:27 +01:00
maTh
73b4fd74a4 fix: highlight next/prev article while using shortcuts (#5211)
* fix

* Update p/themes/Ansum/ansum.css

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

* fix

---------

Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
2023-03-18 22:56:39 +01:00
maTh
afccff4456 Alternative dark: improve border color of notification (#5206) 2023-03-15 12:18:47 +01:00
Alexandre Alapetite
edee27ff0f Merge SimplePie 747 (#5199)
* Merge SimplePie 747
#fix https://github.com/FreshRSS/FreshRSS/issues/5195

Upstream https://github.com/simplepie/simplepie/pull/747

* Syntax error
2023-03-13 13:10:09 +01:00
Alexandre Alapetite
b6223f2cfb Fix attribute lacks space (#5203)
Bug from https://github.com/FreshRSS/FreshRSS/pull/2592
2023-03-13 13:09:28 +01:00
witchcraze
425d790735 docs: fix nginx configuration (#5194)
Update nginx nginx configuration in `Hosted in a subdirectory type.`
2023-03-13 13:02:08 +01:00
maTh
ce5572d7dd Improve about page (#5192)
* add link to documentation

* i18n for documentation

* add target="_blank" for website link

* show environment, if it is not 'production'

* just for admins

* fix

* Update app/i18n/fr/index.php

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>

* Update app/i18n/en/index.php

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>

* Update app/views/index/about.phtml

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-03-12 23:18:11 +01:00
Rebecca Scott
b22ea9d3d7 Adding myself to the credits page (#5191) 2023-03-11 22:24:00 +01:00
berumuron
165a6b7347 Update lib_opml to v0.5.1 (#5188) 2023-03-10 20:04:46 +01:00
Alexandre Alapetite
989bfc69bb Fever API fix mark-all-as-read (#5185)
#fix https://github.com/FreshRSS/FreshRSS/issues/5183

And set protected methods as private since there is no subclass, and in order to get warnings for unused methods, which would have spotted the bug.
2023-03-09 22:10:02 +01:00
obrenckle
538017c15a Update CREDITS.md (#5186) 2023-03-09 21:58:03 +01:00
obrenckle
fc7d3d4b5e Feedback when tag with same name as new category exists (#5181) 2023-03-08 21:46:24 +01:00
Luc SANCHEZ
23447f1221 Type hinting for Factory.php up to PHPStan 9 (#5090)
* Type hinting for Factory.php up to PHPStan 8

* Fix phpstan collateral

* revert test

* remarrk from Alkarex

* remark from Alkarex

* Update app/Controllers/entryController.php

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>

* Remarque's from Alkarex

* Remarque's from Alkarex

* Remarque's from Alkarex

---------

Co-authored-by: Luc <sanchezluc+freshrss@gmail.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-03-08 12:39:04 +01:00
Luc SANCHEZ
6c01d05171 Typehint to greader.php file (#5108)
* Typehint to greader.php file

* remark from  aledeg

* fix phpstan

* Remarque's from Alkarex

* Revert switch case

---------

Co-authored-by: Luc <sanchezluc+freshrss@gmail.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-03-08 11:54:16 +01:00
Rebecca Scott
1c502aaac2 Add docker-compose instructions for ARM64 (#5175)
* Add docker-compose instructions for ARM64

* Update Docker/README.md

* Update Docker/README.md

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-03-07 10:33:49 +01:00
maTh
76d547d830 i18n/de (#5171) 2023-03-06 18:12:43 +01:00
maTh
f0a545a47a fix: i18n for autom. dark mode config (#5168)
* i18n

* Update app/i18n/fr/conf.php

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-03-06 18:12:06 +01:00
Konrad Gräfe
974e5dd133 Update CREDITS.md (#5169)
Signed-off-by: Konrad Gräfe <kgraefe@paktolos.net>
2023-03-05 21:37:32 +01:00
Konrad Gräfe
16472fd427 Fix MySQL UNIX socket support (#5166)
MySQL uses different parameters for passing UNIX socket pathts
(unix_socket) and TCP sockets (host) in contrast to PosgreSQL which uses
one for both (host).

Signed-off-by: Konrad Gräfe <kgraefe@paktolos.net>
2023-03-05 18:00:04 +01:00
maTh
068d18b69b Add: <meta name="theme-color"> (#5105)
* implemented

* themes' metadata.json

* fix

* fix

* retrigger tests

* Update lib/Minz/View.php

Co-authored-by: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com>

* Update lib/Minz/View.php

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>

* Update lib/Minz/View.php

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>

* Update lib/Minz/View.php

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>

* fix

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Co-authored-by: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com>
2023-03-04 15:05:58 +01:00
Sadetdin EYILI
d3966befaf feat: create config to display website icon only / name only / icon and name / none on feeds (#4969)
* feat: create config to display website icon only / name only / icon and name / none on feeds

* fix title hovering

* reverted: column in .phtml

* Update app/i18n/fr/conf.php

---------

Co-authored-by: mathContao <math-home@web.de>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-03-04 14:51:07 +01:00
maTh
27c7367534 Improve UI/UX install process (#5147)
* less buttons on step 1

* add form-group

* jump to next step as link not as button

* improve navigation bar HTML structure

* sync password-show button with extra.js

* fix CSS

* i18n: step 4: split text strings for help text (max chars default user)

* show menu button if mobile view

* improve header layout with empty div

* step 5: button in form-actions

* improve buttons in goup-controls

* Favicon added

* Button: Font color  hover btn-attention

* install check step: add subtitles

* fix .btn

* improve tabindex

* improve showPW_this()
2023-03-04 13:57:52 +01:00
maTh
1c1e63c6ad fixed: Global view - Stick the article to the top when opened (#5153) 2023-03-04 13:47:11 +01:00
maTh
a7e1428485 defined('CLEANCACHE_HOURS') (#5144)
https://github.com/FreshRSS/FreshRSS/issues/4627
2023-03-04 13:46:46 +01:00
Alexandre Alapetite
b5969494f9 Start FreshRSS 1.21.1-dev 2023-03-04 13:43:53 +01:00
Alexandre Alapetite
88026e1e75 Merge pull request #5160 from FreshRSS/latest
Sync with latest branch
2023-03-04 13:34:54 +01:00
Alexandre Alapetite
b3239256dc Merge branch 'edge' into latest 2023-03-04 13:30:45 +01:00
Alexandre Alapetite
0fe0ce894c Update credits 1.21.0 2023-03-04 13:01:58 +01:00
Alexandre Alapetite
de062c88ea Release FreshRSS 1.21.0 2023-03-04 12:55:43 +01:00
Alexandre Alapetite
d2cc5ad3f8 Changelog 1.21.0 2023-03-04 12:42:46 +01:00
Alexandre Alapetite
32acd6c13e SimplePie use single constant for default HTTP Accept header (#5083)
* Use single constant for default SimplePie HTTP Accept
And add missing headers in `SimplePie_Locator::body()`
Follow-up of 5d966b9f64

* Update SimplePie default HTTP Accept
Fix https://github.com/FreshRSS/FreshRSS/pull/5079#issuecomment-1421619176
The `*/*` breaks Mastodon content negotiation

* Revert "Update SimplePie default HTTP Accept"

This reverts commit 13a5a5cb3b.

* Same as upstream
2023-03-04 11:18:56 +01:00
Alexandre Alapetite
44f72889a5 Safer updateCachedValues (#5158)
#fix https://github.com/FreshRSS/FreshRSS/issues/5156
2023-03-04 10:06:30 +01:00
Alexandre Alapetite
4f957dfc4c Doc git latest (#5148)
#fix https://github.com/FreshRSS/FreshRSS/issues/4949
2023-02-28 08:11:27 +01:00
maTh
21f342af2c fix: mobile view: scroll main area again after closing slider (#5092) 2023-02-27 21:35:09 +01:00