Commit Graph

5763 Commits

Author SHA1 Message Date
Alexandre Alapetite a2588fea22
Release 1.22.0 2023-10-23 22:38:59 +02:00
maTh 41d7005c0e
Improved: Theme nord more improvement (#5719)
* new article banner

* optimize side nav bar: close button, width, background

* fix dropdown menu little arrows

* active buttons dropdown menu

---------

Co-authored-by: math-gh <>
2023-10-23 22:35:40 +02:00
Alexandre Alapetite af854f07d7
Changelog 1.22 (#5717)
* Changelog 1.22

* Until page 9

* A bit more

* Add last changes

* Finalise

* More credits
2023-10-23 19:56:45 +02:00
robertdahlem 83cf7301f4
Do not update feeds after import (#5629)
* Add checkbox to not update feeds after import to avoid duplicate feeds when importing multiple files.

* Import without updating feeds, but now unconditionally

* Added hint to click "Update feeds" to all translations

* Update app/i18n/fr/feedback.php

* Fix i18n

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-10-22 19:03:51 +02:00
Alexandre Alapetite 430d467b5a
Try Catch for window.Notification (#5690)
fix https://github.com/FreshRSS/FreshRSS/issues/5687
Exceptions might be thrown in some cases
https://developer.mozilla.org/docs/Web/API/Notification/Notification
2023-10-22 19:02:39 +02:00
maTh 3116fbdbc0
improved: Nord theme (#5689)
* fix border at the end of stream

* bigMarkAsRead button

* .nav_menu .btn

* transition faster

* improve the unread counter

* config menu headlines

* btn-attention

* dropdown menu

* fix pipeline

* improve variables

* slider border

* border inputs

* navigation hover

* fix pipeline

* .btn border + hover

* subsc. mgm. border

* menue more padding for the headline

* dropdown + vars

* scrollbar

* sticky buttons

* article + reader view

* fix pipeline

* fix dropdown-menu dropdown-header in header/footer of article

* fix display config page

* improve .box user queries

* improve .box user queries

* select

* fix .stick .btn

* kdb border

* hover icons

* vars optimized

* icons updated

* improve .stick

* notifications

* alerts improved

* fix pipeline

* theme-preview arrows

* improve alerts colors

* main feed navigation

* .content

* pagination

---------

Co-authored-by: math-gh <>
2023-10-20 12:36:46 +02:00
NaeiKinDus ed07055ace
fix(minz): fix malformed HTTP header (#5699) 2023-10-11 22:36:15 +02:00
maTh 6f228453e4
margins in feed navigation bar (#5695)
Co-authored-by: math-gh <>
2023-10-09 20:26:16 +02:00
maTh 573e8e7072
delete BlueLagoon and Screwdriver (#5694)
* delete BlueLagoon and Screwdriver

* Remove BlueLagoon from typos config

---------

Co-authored-by: math-gh <>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-10-08 20:25:36 +02:00
Alexandre Alapetite 13a1c412df
Minor update dependencies (#5693)
* Minor update dependencies
Follow-up of https://github.com/FreshRSS/FreshRSS/pull/5691
Mostly dev dependencies; nothing that affects our runtime

* Update versions for GitHub Actions

* Fix newly found typos

* Fix exclude path
2023-10-08 20:19:17 +02:00
dependabot[bot] 8d72465f28
Bump postcss from 8.4.26 to 8.4.31 (#5691)
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.26 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.26...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-08 01:56:38 +02:00
maTh f5c3a9004d
Theme selector always visible (#5688)
Co-authored-by: math-gh <>
2023-10-07 21:30:46 +02:00
VYSE V.E.O b82c41f6b9
Test if set_time_limit exists (#5675)
* Fix @set_time_limit as @-operator after PHP8 no longer suppresses disabled functions

* preserve @ decorator

* Fix whitespace

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-09-27 21:40:05 +02:00
Alexandre Alapetite 89a3d36c3e
Fix search using user queries (#5669)
fix https://github.com/FreshRSS/FreshRSS/issues/5668
2023-09-26 22:38:09 +02:00
Alexandre Alapetite 86d713478b
docker-compose PostgreSQL 16 (#5661)
https://www.postgresql.org/about/news/postgresql-16-released-2715/
Watch out, there are no auto-updates between major versions
2023-09-24 00:39:50 +02:00
berumuron 662c9fcc2f
fix: Fix check of existing usernames in cli scripts (#5667)
`preg_grep` returns an empty array if the username matches no elements
from the usernames array.

Regression introduced in 7f9594b8c7

Reference: https://github.com/FreshRSS/FreshRSS/pull/5501
2023-09-22 11:41:49 +02:00
Alexandre Alapetite 2cb4f2e233
Fix dev container Apache logs (#5660)
Apache logs were not available from the dev container.
Quick fix while waiting for a better integrated solution (e.g. coming in output window) - contributions welcome.
2023-09-18 08:41:25 +02:00
Alexandre Alapetite 0beabc333f
Sensitive base-url (#5657)
https://github.com/FreshRSS/FreshRSS/pull/5656#issuecomment-1719802075
Make read-only while waiting for a better approach (which can wait till release 1.23)
2023-09-15 08:20:38 +02:00
Alexandre Alapetite db53d2655b
Allow string in XPath tags (#5653)
fix https://github.com/FreshRSS/FreshRSS/issues/5651
2023-09-14 20:24:22 +02:00
Alexandre Alapetite 3617360883
Fix MariaDB size calculation (#5655)
MariaDB requires an `ANALYZE TABLE` to refresh the size information in the metadata.
At the same time, include `DATA_FREE` in the calculation.
https://mariadb.com/kb/en/information-schema-tables-table/
2023-09-14 20:23:56 +02:00
Alexandre Alapetite bc5666cd27
Fix labels in anonymous mode (#5650)
* Fix labels in anonymous mode
fix https://github.com/FreshRSS/FreshRSS/issues/4305

* Show all tags

* Revert "Show all tags"

This reverts commit 24dfba5017.

* Add message when no labels

* fixed no label style

* i18n de translation

* Fix in non-anomymous mode

* No class in anonymous mode

---------

Co-authored-by: maTh <1645099+math-GH@users.noreply.github.com>
Co-authored-by: math-gh <>
2023-09-14 20:23:33 +02:00
Sam Cohen 52d87c3eaa
Allow configuration of Base URL via website (#5656)
* Allow configuration of Base URL via website

* Fix alphabetization of CREDITS

* Apply suggestions from code review

* Add Automatic recommendation

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-09-13 22:58:10 +02:00
Alexandre Alapetite 0bf33abac8
SQL: Same updateCacheUnreads for all DBs (#5648)
* SQL: Same updateCacheUnreads for all DBs
Use same SQL update request for MySQL / MariaDB than the one we already used for PostgreSQL / SQLite (i.e. using a sub-query).

Testing on a DB of 688MB with 270k entries, 199 feeds, 19 categories, using MySQL 8.1.0.

The new SQL update using a sub-query took in average 0.02s, while the old SQL update using a join took in average 0.05s. SQL cache was properly invalidated between each run. The new SQL request is thus about twice faster.

Another advantage of the SQL update using a sub-query is that it works identically in PostgreSQL, SQLite, MariaDB, MySQL, so we do need different versions anymore.

Contributes to https://github.com/FreshRSS/FreshRSS/issues/5008#issuecomment-1709755370

* Force USE INDEX

* Use same SQL methods also for markReadEntries, markReadCat
2023-09-12 13:44:17 +02:00
Alexandre Alapetite f050a94b48
SQL: clean old auto-updates (#5649)
Should help with some DB lock issues.

Complete https://github.com/FreshRSS/FreshRSS/pull/3558 after https://github.com/FreshRSS/FreshRSS/pull/5625 already cherry-picked from it.

* Removed auto-update of MySQL GUID case sensitivity
https://github.com/FreshRSS/FreshRSS/pull/2078
  * Contributed to a DB lock in https://github.com/FreshRSS/FreshRSS/issues/5008

Also removed the following non-problematic auto-updates, simply because they were older than the above ones
* Auto-create custom labels (1.12.0) https://github.com/FreshRSS/FreshRSS/pull/2027
* Auto-add JSON column for feeds (1.11.0) https://github.com/FreshRSS/FreshRSS/pull/1838
* Auto-create temporary tables (1.7.0) https://github.com/FreshRSS/FreshRSS/pull/1470
2023-09-12 10:43:14 +02:00
maTh f5aba79d14
Update page css class changed (#5647)
Co-authored-by: math-gh <>
2023-09-10 16:07:14 +02:00
Balazs Keresztury f470724c6e
add oidc callback URL and hints for Authelia to docs (#5646) 2023-09-10 15:36:14 +02:00
maTh 61a2828820
i18n: shortened text strings (#5636)
* i18n

* fix

---------

Co-authored-by: math-gh <>
2023-09-10 15:27:13 +02:00
Alexandre Alapetite 24be95756f
Docker MySQL update doc (#5639)
Remove obsolete parameter not needed anymore now that all our images are using PHP 8+
2023-09-09 11:15:09 +02:00
maTh 9beba6337e
i18n: German translation of admin.php (new update page) (#5640)
Co-authored-by: math-gh <>
2023-09-06 23:12:20 +02:00
Alexandre Alapetite 98559cebc3
Remove obsolete TTL migration code (#5625)
Remove `updateTTL` function used to help migration to 5+ year-old FreshRSS 1.10 and FreshRSS 0.7.3 https://github.com/FreshRSS/FreshRSS/pull/1750
This function contributed to locking the database https://github.com/FreshRSS/FreshRSS/pull/5574
Subset of https://github.com/FreshRSS/FreshRSS/pull/3558
2023-09-06 21:41:17 +02:00
Alexandre Alapetite 2e1d45a88d
Fix parenthesis escaping bug (#5633)
fix https://github.com/FreshRSS/FreshRSS/issues/5632
In the SQL search, parentheses should not be escaped. Escaped parenthesis in the SQL search were tolerated by PostgreSQL but not by SQLite.
2023-09-05 17:33:38 +02:00
Alexandre Alapetite 1c7c1016f4
Fix JSON export/import (#5626)
* Fix import with empty content
fix https://github.com/FreshRSS/FreshRSS/issues/5622
Cherry picks on https://github.com/FreshRSS/FreshRSS/pull/5584

* Fix export of tags / labels
Article-defined tags were wrongly exported as user-defined labels.

* Fix export of tags / labels
Article-defined tags were wrongly exported as user-defined labels.

* Fix bug with many labels

* Better typing

* Comments
2023-09-04 10:09:37 +02:00
maTh da405ceee6
Fix: sharing via clipboard for no https/localhost environments (#5606)
* Update main.js

* Update p/scripts/main.js

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

* improved with negative feedback

* Update p/scripts/main.js

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

---------

Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-08-29 23:15:19 +02:00
Miguel Sánchez dd91fe164d
Add myself to credits (#5610) 2023-08-25 13:49:13 +02:00
Miguel Sánchez 06b613a50d
Fixed Spanish translation typo (#5609) 2023-08-24 19:54:28 +02:00
András Marczinkó 92e56ddc27
Added myself to the credits (#5605) 2023-08-22 21:14:29 +02:00
András Marczinkó 93fb55c9f8
Fixed some typos in the Hungarian translation (#5593)
* Fixed some typos in the Hungarian translation

* Fixed a misspelled word in the Hungarian translation

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-08-22 00:40:45 +02:00
maTh 3b4a865ce6
Fix background color of <pre> in Dark mode (#5603) 2023-08-22 00:37:42 +02:00
FromTheMoon 6749adc050
Add Hungarian language (#5589)
* Add Hungarian language

* Fixed missing lines in Hungarian translation
2023-08-15 11:18:47 +02:00
Alexandre Alapetite d165ed1fb6
Fix hash of articles with loadCompleteContent (#5576)
* Fix hash of articles with loadCompleteContent
The detection of modified articles was wrong for feeds using loadCompleteContent. Indeed, the hash is supposed to computed on the content provided by the server of the RSS feed, excluding further modifications.
Furthermore, read hash from database instead of recomputing it all the time.
Slightly related to https://github.com/FreshRSS/FreshRSS/pull/5574

* Explicit SQL alias

* PHPDocs
2023-08-13 15:11:22 +02:00
berumuron 54592fa1fd
fix: Fix the "Show all articles" option (#5580) 2023-08-10 17:02:47 +02:00
berumuron 1e0e4f54a5
fix: Allow to access logs when update is disabled (#5577) 2023-08-10 16:43:15 +02:00
berumuron eb57f490db
tec: Make FreshRSS_Share::register public (#5578)
I don't know why the visibility of this method has changed, but it's
essential to register custom shares as extensions.

Reference: a13a20de20
2023-08-10 16:41:16 +02:00
AmirHossein 6d8a5429cb
Add Persian/فارسی Language (#5571)
* Add Persian/فارسی  Language

* Fix i18n

* make fix-all
And several manual fixes

* Exclude Persian from English typo check

* Update CREDITS.md

I added myself to the list

* Credits alphabetic order

---------

Co-authored-by: AmirHossein <marjani@outlook.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-08-07 10:09:31 +02:00
Steve Jones 8f188b57ee
[docs] Fix typos on the word 'scrape' and its variations (#5567)
* Fix typos on the word 'scrape' and its variations

* Fix spelling of 'Tipps'
2023-08-05 13:54:09 +02:00
Alexandre Alapetite 6ee73b5fca
Revert auto mark as read same titles for existing articles (#5561)
Partial revert of https://github.com/FreshRSS/FreshRSS/pull/5505
We should not apply the auto mark as read rule based on existing titles for updated articles, because the match would most of the time be on that same article's title.
2023-08-03 21:57:25 +02:00
Alexandre Alapetite c49c29a561
OPML export fix empty attributes (#5559)
Fix:
> Deprecated:  DOMElement::setAttributeNS(): Passing null to parameter #3 ($value) of type string is deprecated in /var/www/FreshRSS/lib/marienfressinaud/lib_opml/src/LibOpml/LibOpml.php on line 680
2023-08-03 21:57:00 +02:00
Alexandre Alapetite 4039f6c9a4
Fix cache refresh (#5562)
Improvement of https://github.com/FreshRSS/FreshRSS/pull/4422

The main problem was due to `touch()` not automatically clearing the file status cache, and requiring a call to `clearstatcache()`. Example:

```
php > touch('/tmp/touch.txt');
php > echo date('c', filemtime('/tmp/touch.txt'));
2023-08-03T17:27:43+02:00
php > touch('/tmp/touch.txt');
php > echo date('c', filemtime('/tmp/touch.txt'));
2023-08-03T17:27:43+02:00
php > clearstatcache(true, '/tmp/touch.txt');
php > echo date('c', filemtime('/tmp/touch.txt'));
2023-08-03T17:28:21+02:00
```
2023-08-03 21:56:35 +02:00
Alexandre Alapetite e7689459f2
Rework trusted proxies (#5549)
* Rework trusted proxies
Fix https://github.com/FreshRSS/FreshRSS/issues/5502
Follow-up of https://github.com/FreshRSS/FreshRSS/pull/3226

New environment variable `TRUSTED_PROXY`: set to 0 to disable, or to a list of trusted IP ranges compatible with https://httpd.apache.org/docs/current/mod/mod_remoteip.html#remoteiptrustedproxy

New internal environment variable `CONN_REMOTE_ADDR` to remember the true IP address of the connection (e.g. last proxy), even when using mod_remoteip.

Current working setups should not observe any significant change.

* Minor whitespace

* Safer trusted sources during install
Rework of https://github.com/FreshRSS/FreshRSS/pull/5358
https://github.com/FreshRSS/FreshRSS/issues/5357

* Minor readme
2023-07-30 12:59:18 +02:00
Alexandre Alapetite 0182d84142
Minor update dev dependencies (#5541)
Follow-up of https://github.com/FreshRSS/FreshRSS/pull/5538
2023-07-23 14:31:55 +02:00