aboutsummaryrefslogtreecommitdiff
path: root/internal/api/api_integration_test.go (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2024-03-29integration/webhook: add category title to request bodyGravatar Jean Khawand 1-8/+15
2024-03-28Turkish Translation UpdateGravatar Taylan Tatlı 1-530/+497
2024-03-25Bump dominikh/staticcheck-action from 1.3.0 to 1.3.1Gravatar dependabot[bot] 1-1/+1
Bumps [dominikh/staticcheck-action](https://github.com/dominikh/staticcheck-action) from 1.3.0 to 1.3.1. - [Release notes](https://github.com/dominikh/staticcheck-action/releases) - [Changelog](https://github.com/dominikh/staticcheck-action/blob/master/CHANGES.md) - [Commits](https://github.com/dominikh/staticcheck-action/compare/v1.3.0...v1.3.1) --- updated-dependencies: - dependency-name: dominikh/staticcheck-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2024-03-24reader/rss: don't add empty tags to RSS itemsGravatar jvoisin 1-13/+27
This commit adds a bunch of checks to prevent reader/rss from adding empty tags to rss items, as well as some minor refactors like nested conditions and loops unrolling.
2024-03-24fix: do not store empty tagsGravatar Romain de Laage 2-2/+19
2024-03-24http/response: get rid of the X-XSS-Protection headerGravatar jvoisin 2-2/+0
It's useless at best, dangerous at worst, and shouldn't be used anymore anywhere. See the following resources for details: - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection - https://chromestatus.com/feature/5021976655560704 - https://bugzilla.mozilla.org/show_bug.cgi?id=528661 - https://blogs.windows.com/windows-insider/2018/07/25/announcing-windows-10-insider-preview-build-17723-and-build-18204/
2024-03-24timezone: make sure the tests pass when the timezone database is not ↵Gravatar Frédéric Guillot 1-0/+3
installed on the host
2024-03-24integration: fix rssbrige importGravatar Frédéric Guillot 1-1/+1
2024-03-23Update GitHub PR templateGravatar Frédéric Guillot 1-0/+1
2024-03-23cli: avoid misleading error message when creating an admin userGravatar Frédéric Guillot 4-15/+24
2024-03-23rss: use Channel tags only if there is no Item tagsGravatar Frédéric Guillot 2-7/+9
2024-03-21Update miniflux.1Gravatar Jean Khawand 1-1/+1
2024-03-21Update miniflux.1Gravatar Jean Khawand 1-0/+2
#2187 #2543
2024-03-20Rename PROXY_* options to MEDIA_PROXY_*Gravatar Frédéric Guillot 14-204/+413
2024-03-20Enable trusted-typesGravatar jvoisin 5-4/+20
This commit adds a policy, and make use of it in the Content-Security-Policy. I've tested it the best I could, both on a modern browser supporting trusted-types (Chrome) and on one that doesn't (firefox). Thanks to @lweichselbaum for giving me a hand to wrap this up!
2024-03-20Replace a bunch of `let` with `const`Gravatar jvoisin 6-44/+41
According to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const > Many style guides (including MDN's) recommend using const over let whenever a variable is not reassigned in its scope. This makes the intent clear that a variable's type (or value, in the case of a primitive) can never change.
2024-03-20Inline a one-liner functionGravatar jvoisin 4-12/+7
No need to expose a symbol for this.
2024-03-19man page: sort config options in alphabetical orderGravatar Frédéric Guillot 1-217/+216
2024-03-19Ensure enclosure URLs are always absoluteGravatar Frédéric Guillot 6-128/+447
2024-03-19Minor refactoring of internal/reader/atom/atom_10_adapter.goGravatar jvoisin 1-30/+31
- Move the population of the feed's entries into a new function, to make `BuildFeed` easier to understand/separate concerns/implementation details - Use `sort+compact` instead of `compact+sort` to remove duplicates - Change `if !a { a = } if !a {a = }` constructs into `if !a { a = ; if !a {a = }}`. This reduce the number of comparisons, but also improves a tad the control-flow readability.
2024-03-19Minor idiomatic pass on internal/http/request/context.goGravatar jvoisin 1-24/+8
2024-03-20Add `FILTER_ENTRY_MAX_AGE_DAYS` config option to limit fetching all feed itemsGravatar Jean Khawand 6-4/+53
2024-03-19Add keyboard shortcuts for scrolling to top/bottom of the item listGravatar Matt Behrens 21-11/+76
2024-03-19Bump github.com/coreos/go-oidc/v3 from 3.9.0 to 3.10.0Gravatar dependabot[bot] 2-19/+7
Bumps [github.com/coreos/go-oidc/v3](https://github.com/coreos/go-oidc) from 3.9.0 to 3.10.0. - [Release notes](https://github.com/coreos/go-oidc/releases) - [Commits](https://github.com/coreos/go-oidc/compare/v3.9.0...v3.10.0) --- updated-dependencies: - dependency-name: github.com/coreos/go-oidc/v3 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2024-03-18Fix regression in AbsoluteProxifyURL()Gravatar Frédéric Guillot 3-18/+113
Regression introduced in commit 66b8483791e58030c0cc3b5c5d82b0b0d5e87cec PR #2499
2024-03-18Remove trailing space in SiteURL and FeedURLGravatar Frédéric Guillot 7-22/+274
2024-03-18Use struct embedding to reduce code duplicationGravatar jvoisin 2-37/+21
2024-03-18Minor concatenation-related simplifications in internal/storage/Gravatar jvoisin 3-16/+14
Use plain strings concatenation instead of building an array and then joining it.
2024-03-18Simplify removeDuplicatesGravatar jvoisin 1-11/+4
Use a sort+compact construct instead of doing it by hand with a hashmap. The time complexity is now O(nlogn+n) instead of O(n), and space complexity around O(logn) instead of O(n+uniq(n)), but it shouldn't matter anyway, since removeDuplicates is only called to deduplicate tags.
2024-03-18Minor simplification of internal/reader/media/media.goGravatar jvoisin 1-9/+8
- Simplify a switch-case by moving a common condition above it. - Remove a superfluous error-check: `strconv.ParseInt` returns `0` when passed an empty string.
2024-03-17atom: avoid debug message when the date is emptyGravatar Frédéric Guillot 1-9/+11
2024-03-17Enable go-critic linter and fix various issues detectedGravatar Frédéric Guillot 34-109/+126
2024-03-17Replace Optional{Int,Int64,Float64} with a generic function OptionalNumber()Gravatar Frédéric Guillot 3-24/+10
2024-03-17Minor simplifications of the rewriterGravatar jvoisin 2-68/+51
- Online some one-line functions - Transform a free-standing function into a method - Massively simplify `removeClickbait` - Use a proper constant instead of a magic number in `applyFuncOnTextContent`
2024-03-17Compile block/keep regex only once per feedGravatar jvoisin 1-39/+46
No need to compile them once for matching on the url, once per tag, once per title, once per author, … one time is enough. It also simplify error handling, since while regexp compilation can fail, matching can't.
2024-03-17feat: Media player: Conrol playback speedGravatar Romain de Laage 31-74/+188
fix #1845
2024-03-16Rewrite API integration tests without build tagsGravatar Frédéric Guillot 15-2552/+2385
2024-03-15Update GitHub PR templateGravatar Frédéric Guillot 1-0/+2
2024-03-15Fix regressions introduced by PR #2476Gravatar Frédéric Guillot 1-4/+4
'Toast' messages are broken and v hotkey opens in the same tab Commit d25c032171e47799da40a155bd172308fbfb036f
2024-03-15Fix download button loading labelGravatar Frédéric Guillot 1-27/+29
2024-03-15Avoid warnings in ui packageGravatar Frédéric Guillot 2-17/+8
Remove unused variables and improve JSON decoding in saveEnclosureProgression()
2024-03-15Fix force refreshGravatar Frédéric Guillot 1-3/+7
2024-03-15Display an error message on edit feed page when the feed URL is not uniqueGravatar Frédéric Guillot 3-3/+7
2024-03-15Remove some duplicated code in RSS parserGravatar Frédéric Guillot 4-64/+227
2024-03-15Refactor Atom parser to use an adapterGravatar Frédéric Guillot 11-513/+808
2024-03-15Bump the number of simultaneous workersGravatar jvoisin 2-2/+2
We're in 2024, I'm pretty sure we can afford to have 16 simultaneous open http connections at the same time, instead of only 5.
2024-03-14Fix regression: Add to Home Screen button is unreadableGravatar Frédéric Guillot 1-0/+2
Regression introduced in commit https://github.com/miniflux/v2/commit/ea58bac5489cd71f898312132f6e8d7b42cb4d33
2024-03-14More trusted-types compatibilityGravatar jvoisin 1-5/+5
2024-03-14Bump github.com/go-webauthn/webauthn from 0.10.1 to 0.10.2Gravatar dependabot[bot] 2-14/+14
Bumps [github.com/go-webauthn/webauthn](https://github.com/go-webauthn/webauthn) from 0.10.1 to 0.10.2. - [Release notes](https://github.com/go-webauthn/webauthn/releases) - [Commits](https://github.com/go-webauthn/webauthn/compare/v0.10.1...v0.10.2) --- updated-dependencies: - dependency-name: github.com/go-webauthn/webauthn dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2024-03-13Fix JavaScript error on the login pageGravatar Frédéric Guillot 1-2/+4