aboutsummaryrefslogtreecommitdiff
path: root/app
AgeCommit message (Collapse)Author
2020-05-30Fix display_categories upgrade from 1.16.0 again (#3019)Gravatar Alexandre Alapetite
* 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-30Fix display_categories upgrade from 1.16.0 (#3018)Gravatar Alexandre Alapetite
* 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-29Fix PostgreSQL database auto-create with limited rights (#3013)Gravatar Alexandre Alapetite
* 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-26[i18n] Update Dutch translation for 1.16.1 (#3005)Gravatar Frans de Jonge
See <https://github.com/FreshRSS/FreshRSS/issues/2994>.
2020-05-25Fix memory leak when using lib_phpQuery (#3004)Gravatar Alexandre Alapetite
* 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-21Revert FOUC fix (#2991)Gravatar Alexandre Alapetite
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-21Fix fetch preview (#2993)Gravatar Alexandre Alapetite
* 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-21getContentByParsing follow HTML redirections (#2985)Gravatar Alexandre Alapetite
* 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-18Fix nav_menu mark-as-read (#2909)Gravatar Alexandre Alapetite
* 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-17Stream instead of memory copy of SimplePie entries (#2972)Gravatar Alexandre Alapetite
* 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-15Revert to STDOUT for cron messages (#2979)Gravatar Alexandre Alapetite
#fix https://github.com/FreshRSS/FreshRSS/issues/2975
2020-05-15Reformat i18n correctly (#2976)Gravatar Marien Fressinaud
* 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-15Delay the feeds actualization start notice (#2974)Gravatar Craig Andrews
* 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-14Improve logs during cron actualization (#2964)Gravatar Alexandre Alapetite
For https://github.com/FreshRSS/FreshRSS/issues/2952#issuecomment-626218921 And fix a little bug writing logs with the wrong user name
2020-05-10add lazy loading on favicon (#2962)Gravatar upskaling
2020-05-10Attempt to reduce max memory usage during actualize (#2955)Gravatar Alexandre Alapetite
* Attempt to reduce max memory usage during actualize #Fix https://github.com/FreshRSS/FreshRSS/issues/2952 * Use memory_get_peak_usage
2020-05-092914 show last login date (#2936)Gravatar equinoxmatt
* Add new last_login param to default user config * Add English translation strings for last login feature * Update last_login when user successfully logs in. * Add last_login column to manage users screen * Add last_login to user details screen * Remove accidental docker-compose.yml * Fix whitespace * Use last modified time for config file * Remove last_login field from default user config * Touch user configuration file upon succesful login * Add translations with todos * Fix whitespace * Use last_user_activity * Semi-colomn Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2020-05-06Add/mobile feed configuration (#2938)Gravatar Marien Fressinaud
* Show subscription management button on mobile * Show aside box-shadow on Origine only when opened * Reduce padding of Origine posts on mobile * Shrink stick component with long input * Show Origine configure icons on mobile * Show the slider full width on mobile * Improve the look of forms on mobile * Fix Ansum theme * Fix BlueLagoon theme * Fix Dark theme * Fix Flat theme * Fix Mapco theme * Fix Origine-compact theme * Fix Pafat theme * Fix Screwdriver theme * Fix Swage theme * Fix Alternative-Dark theme * Apply RTL script on themes Co-authored-by: triatic <42704418+triatic@users.noreply.github.com>
2020-05-03Fever integer type for numbers (#2946)Gravatar Alexandre Alapetite
* Fever integer type for feed ID #Fix https://github.com/FreshRSS/FreshRSS/issues/2940#issuecomment-623022435 * Fix feed_id * Ensure string for entry ID To be compatible with 32-bit platforms. Before, the type was inconsistent depending on architecture + database * Integer for entry count functions
2020-05-02Fever integer type for last_refreshed_on_time 2 (#2945)Gravatar Alexandre Alapetite
#Fix fever_last_refreshed_on_time Try again https://github.com/FreshRSS/FreshRSS/pull/2944
2020-05-01Always put checkbox labels on the right (#2937)Gravatar Marien Fressinaud
There were two checkboxes with labels set on the left: it was looking weird and inconsistent with the rest of the application. Also, since the Websub checkbox cannot be checked by the user (i.e. it is entirely managed by the backend), I just hide the line when Websub is disabled. It would be better to never show the checkbox and adapt the label to say something like "Websub is enabled for this feed", but I prefer to avoid changing all the locales. Last point: an input should always have one and only one label. Websub checkbox had two labels, which can be hardly supported by assistive technologies. Reference: https://developer.mozilla.org/en-US/docs/Learn/Forms/How_to_structure_a_web_form#Multiple_labels
2020-04-30Fix filenames for files exported with CLI (#2932)Gravatar Marien Fressinaud
Filenames were created with the username of the current user. However, when we export the files with the CLI, the current user is "_". This commit makes the username always required in the `exportFile` method so we make sure to always manipulate a real value. Consequently, the filenames can be formatted correctly. Obviously, this has absolutely no impacts since the CLI doesn't consider the HTTP headers. It just makes things a bit more clear. It's a first step to remove the concept of "default user".
2020-04-24WebSub move fixes (#2922)Gravatar Alexandre Alapetite
Small fixes related to when WebSub changes address: * When unsubscribing, one must use the current/old address, not the newly found selfUrl; * This change https://github.com/FreshRSS/FreshRSS/pull/2659#discussion_r347263068 was wrong, so reverted to the first version. We must obey the rules also for feeds for which the initial WebSub enabling is not finished, otherwise we never have a chance to redirect the feed to the proper selfUrl.
2020-04-20Enhance the way help elements are displayed (#2911)Gravatar Julien-Pierre Avérous
* - Always display help under the targeted element. - Use same help place for HTTP authentication in 'add' feed view than in 'update' feed view. - Move help under input field in register view, as all other places (homogeneity). * - Don't use "!important" as suggested by @Alkarex.
2020-04-20Fix for "Flash Of Unstyled Content" and slow loading in the Firefox (#2913)Gravatar Kristian Salonen
2020-04-20Don't check email if feature disabled or for admin (#2917)Gravatar Marien Fressinaud
2020-04-18Turn off autocaptialization on the username field to improve mobile UX. (#2907)Gravatar Andrew Hunter
* Turn off autocapitalization on the username field to improve mobile UX. Fixes issue #2384 * Update app/views/auth/formLogin.phtml Co-Authored-By: Alexandre Alapetite <alexandre@alapetite.fr> * Update app/views/auth/register.phtml Co-Authored-By: Alexandre Alapetite <alexandre@alapetite.fr>
2020-04-17Filter by multiple feed IDs (#2892)Gravatar Alexandre Alapetite
Add the possibility to filter by feed ID like `f:123 more-search` or multiple feed IDs, like `f:123,234,345 more-search` or an exclusion like `!f:456,789 more-search`
2020-04-17A wrong login must return HTTP 403 (#2903)Gravatar Alexandre Alapetite
* A wrong login must produce HTTP 403 #fix https://github.com/FreshRSS/FreshRSS/issues/2901 https://github.com/FreshRSS/FreshRSS/pull/2794/files#r389319248 * Just for consistency
2020-04-16Expose podcast in API (#2898)Gravatar Alexandre Alapetite
* Expose podcast in API Expose RSS enclosures in our API, e.g. for clients supporting podcasts * PHP CS? * Annoying linter * Light optimisation
2020-04-16Option to control which categories to unfold (#2888)Gravatar Alexandre Alapetite
#fix https://github.com/FreshRSS/FreshRSS/issues/2324
2020-04-14Reduce DB locks (#2899)Gravatar Alexandre Alapetite
Do not lock the DB to update it when there is nothing to commit. This should reduce the risk of seeing some `database is locked` errors.
2020-04-12Fix double HTML-encoding in category names (#2897)Gravatar Alexandre Alapetite
Category names are already HTML-encoded when reaching the view.
2020-04-11Update Chinese Translation (#2891)Gravatar yzqzss
* Update admin.php * Update conf.php * Update feedback.php 已重置 * Update gen.php * Update sub.php * Update user.php * Update user.php
2020-04-08Swap shortcuts for mark all articles as read / mark previous articles as ↵Gravatar Alexandre Alapetite
read (#2881) * Swap shortcuts for mark all articles as read / mark previous articles as read #fix https://github.com/FreshRSS/FreshRSS/issues/2865 Follow-up of https://github.com/FreshRSS/FreshRSS/pull/2843 * <kbd>⇧ Shift</kbd>+<kbd>R</kbd> to mark all articles as read; * <kbd>Alt ⎇</kbd>+<kbd>r</kbd> to mark previous articles as read. * i18n
2020-04-05[i18n] Update French translations (#2878)Gravatar Damien Leroy
* Add french translate * Fix documentation broken url
2020-04-03[i18n] Update Occitan language (#2873)Gravatar Quent-in
* Update admin.php * Update user.php * Update index.php * Update gen.php * Update feedback.php * Update conf.php * Update sub.php
2020-04-01Implement negation for searching by date intervals (#2869)Gravatar Alexandre Alapetite
* Implement negation for searching by date intervals #fix https://github.com/FreshRSS/FreshRSS/issues/2866 Allow searching for e.g. `!date:P1W` to exlude all articles newer than one week. More generally, allows exclusion on some date intervals. * Fix OR
2020-04-01Fix fetch content for complex HEAD (#2867)Gravatar Alexandre Alapetite
* Fix contentSelectorPreviewAction Was not compatible with https://github.com/FreshRSS/FreshRSS/pull/2588 * Fix lib_phpQuery for <head ...> #fix https://github.com/FreshRSS/FreshRSS/issues/2864 * Replace split() by explode() for PHP7 compatibility https://php.net/str-split * Fix for document with a `<head>` tag more complicated, like `<head profile="http://www.w3.org/1999/xhtml/vocab">`
2020-04-01API return proper newestItemTimestampUsec (#2854)Gravatar Alexandre Alapetite
* API return proper newestItemTimestampUsec #fix https://github.com/FreshRSS/FreshRSS/issues/2853 * Minor naming * Add newestItemTimestampUsec for labels * Do not use t.name after all
2020-03-31Fix action filter when filtering on author (#2863)Gravatar Alexandre Alapetite
#fix https://github.com/FreshRSS/FreshRSS/issues/2806 Bug: array instead of string
2020-03-31Allow feed to be actualized after being truncated (#2862)Gravatar Alexandre Alapetite
Before, on had to wait for the cache to expire before being able to refresh a feed that had been truncated via the Web interface. Now, one can "delete all articles" and hit "actualize" imediately after without problem. Useful for testing filters, debugging e.g. https://github.com/FreshRSS/FreshRSS/issues/2806
2020-03-28Loader animation while waiting for first articles (#2845)Gravatar Alexandre Alapetite
* Loader animation while waiting for first articles Especially useful when a slow search is being performed. Thanks to one new flush at the right time, the left colum and top menu will be there, waiting for the articles to come. This avoids layout flashes (the left column used to take the full width while waiting for articles). For optimal use, this assumes that the deployment has a proper buffering configuration, such as in our official Docker image (also when using Træfik as a reverse proxy in front). Might not work just as well with other Apache or nginx setups. * Fix on mobile And simplified CSS * Properly hide the loader It was not possible to find a position where the loading animation would be always hidden after load, so change strategy to hide it automatically by CSS when the actual content has arrived
2020-03-23Shortcut mark previous articles as read (#2843)Gravatar Alexandre Alapetite
* Shortcut mark previous articles as read Address part of https://github.com/FreshRSS/FreshRSS/issues/2836 The shortcut [shift]+[r] now marks previous articles as read; The previous action of marking all articles as read is now achieved by [alt]+[r] So this is a slight breaking change, but I like the logic of the upward-facing [shift] arrow to hint at previous articles, while [alt] is more like "all", at least to my eyes :-) * Update app/i18n/nl/conf.php Co-Authored-By: Frans de Jonge <fransdejonge@gmail.com> * [⇧ Shift] / [Alt ⎇] With standard Unicode signs * <kbd> + CSS styling * Missing themes Tested with all themes * Travis CSS Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
2020-03-22Update and fix pt-br translation (#2833)Gravatar fabianski7
* Update and fix pt-br translation * Update app/i18n/pt-br/install.php * Update app/i18n/pt-br/conf.php * Update app/i18n/pt-br/sub.php * Update app/i18n/pt-br/index.php Co-authored-by: Fabianski <yes@its.me> Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2020-03-22More inactive cutoffs (#2831)Gravatar Anton Smirnov
* Fill additional cutoffs * Update phpdoc * Add translation strings * Update app/i18n/fr/gen.php Co-Authored-By: Alexandre Alapetite <alexandre@alapetite.fr> * Add Dutch translation Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
2020-03-21Revert minor Spanish translations (#2830)Gravatar Alexandre Alapetite
#Fix https://github.com/FreshRSS/FreshRSS/pull/2823
2020-03-21Add translate (#2823)Gravatar loft17
Add remaining translations
2020-03-09Option to show/hide favicons (#2821)Gravatar Alexandre Alapetite
* Option to show/hide favicons #fix https://github.com/FreshRSS/FreshRSS/issues/2819 * Also for subscription list
2020-03-08Improve login and registration pages (#2794)Gravatar Marien Fressinaud
* Keep the user on login page on failure * Show an error if username already exists * Check the password format in the backend * Return a better message if username is invalid * Add a title to the login page * wip: Improve look of login and register pages * Set a capital M in username help message On the registration page, username tip started with a minuscule, while the password tip started with a capital. * Change message if username is taken