Frédéric Guillot
33063a7775
docs(changelog): update release notes for version 2.2.5
2025-01-20 11:12:46 -08:00
Frédéric Guillot
49c62db2e1
fix: update Wallabag URL label to avoid confusion
2025-01-18 17:22:49 -08:00
Frédéric Guillot
400e8974f9
fix: improve pagination when having identical publication date
2025-01-18 16:59:48 -08:00
Frédéric Guillot
9c82e55b98
fix: do not strip tags in Atom entry title
2025-01-18 15:33:44 -08:00
Frédéric Guillot
c9c422b135
feat: bump linter and minifier from ECMAScript 2017 to 2020 (ES11)
2025-01-18 11:32:50 -08:00
Julien Voisin
91f9a7650e
refactor(js): add jshint check for strict comparison
2025-01-16 17:50:09 -08:00
jvoisin
605eeb4525
Fix a mistake introduced in f67d2e230b
...
Spotted by @michaelkuhn
2025-01-16 17:37:54 -08:00
Julien Voisin
eb6991ae49
tests(js): improve .jshintrc
2025-01-15 18:43:03 -08:00
Cthulhux
eac5d59f5b
feat(locale): update German translation
...
New ntfy string translated
2025-01-15 17:15:55 -08:00
dependabot[bot]
3861f1aa67
build(deps): bump github.com/tdewolff/minify/v2 from 2.21.2 to 2.21.3
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.21.2 to 2.21.3.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.21.2...v2.21.3 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-01-14 20:50:56 -08:00
Julien Voisin
6af0cd5b5c
refactor(js): simplify a bit keyboard_handler.js
...
- Mark two methods as static
- Use a `switch-case` construct instead of an Object and a loop.
2025-01-14 20:50:21 -08:00
Julien Voisin
fccca0ce1e
refactor(js): minor refactoring of touch_handler.js
...
- Mark a method as `static`
- use `Math.sqrt` instead of `Math.pow(…, 0.5)`
- Use `Math.sign` instead of a condition on the sign
- Inline some used-once variables
- Reduce the scope of some variables
2025-01-14 20:47:30 -08:00
Julien Voisin
8c3a9184ac
refactor(js): remove an outdated check for {passive: true}
...
According to https://caniuse.com/?search=passive ,
all browsers released after 2016 do support passive event listeners,
so no need to check for its presence.
2025-01-14 20:18:11 -08:00
Matthaiks
3b317b0b80
feat(locale): update Polish translation
2025-01-13 18:38:22 -08:00
Brieuc Dubois
a702bf0342
feat(ntfy): Add option to use internal links
2025-01-13 10:36:49 -08:00
Frédéric Guillot
e9520f5d1c
fix(finder): do not add redirections to the list of subscriptions to avoid confusion
2025-01-12 17:09:32 -08:00
Frédéric Guillot
f5fde36d45
fix(ui): reading preferences are reset if the form values are incorrect
2025-01-12 16:16:29 -08:00
Jake Walker
6cbe8c3a9d
feat: add fix_ghost_cards
rewrite rule
2025-01-12 14:43:27 -08:00
Julien Voisin
1e54a073d3
refactor(js): minor improvements in app.js
...
- Use `….classList.toggle` instead of `….classList.add`/`….classList.remove` in a condition
- Replace a `function()` with a `() =>`
- Use `Math.min` instead of a handwritten condition
2025-01-12 12:54:08 -08:00
dependabot[bot]
bf66ef5a0f
build(deps): bump github.com/coreos/go-oidc/v3 from 3.11.0 to 3.12.0
...
Bumps [github.com/coreos/go-oidc/v3](https://github.com/coreos/go-oidc ) from 3.11.0 to 3.12.0.
- [Release notes](https://github.com/coreos/go-oidc/releases )
- [Commits](https://github.com/coreos/go-oidc/compare/v3.11.0...v3.12.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>
2025-01-12 12:22:16 -08:00
CaptainArk
9b25ea4ed6
feat(integration): add Discord integration
2025-01-12 12:18:57 -08:00
Julien Voisin
f116f7dd6a
test(sanitizer): add a fuzzer
2025-01-11 17:19:31 -08:00
dependabot[bot]
e540547104
build(deps): bump golang.org/x/oauth2 from 0.24.0 to 0.25.0
...
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2 ) from 0.24.0 to 0.25.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.24.0...v0.25.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-01-11 17:12:57 -08:00
dependabot[bot]
5b1abbf340
build(deps): bump golang.org/x/net from 0.33.0 to 0.34.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.33.0 to 0.34.0.
- [Commits](https://github.com/golang/net/compare/v0.33.0...v0.34.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-01-11 17:05:27 -08:00
dependabot[bot]
0d72cef82e
build(deps): bump golang.org/x/crypto from 0.31.0 to 0.32.0
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.31.0 to 0.32.0.
- [Commits](https://github.com/golang/crypto/compare/v0.31.0...v0.32.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-01-11 16:51:21 -08:00
Julien Voisin
79ec6ef81f
feat(database): add optional build support for SQLite
...
Miniflux can be build with `go build -tags=sqlite` to test this. Note that
while it builds, it will fail at runtime, as some of the SQL used in miniflux is
postgresql-specific.
2024-12-29 15:09:26 -08:00
jvoisin
8d4954e29b
Return an error should it happen in migrations
2024-12-29 11:51:47 -08:00
dependabot[bot]
c81e17c20d
build(deps): bump github.com/PuerkitoBio/goquery from 1.10.0 to 1.10.1
...
Bumps [github.com/PuerkitoBio/goquery](https://github.com/PuerkitoBio/goquery ) from 1.10.0 to 1.10.1.
- [Release notes](https://github.com/PuerkitoBio/goquery/releases )
- [Commits](https://github.com/PuerkitoBio/goquery/compare/v1.10.0...v1.10.1 )
---
updated-dependencies:
- dependency-name: github.com/PuerkitoBio/goquery
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-12-27 15:08:35 -08:00
Frédéric Guillot
5549f75dd7
fix(sanitizer): allow <hr> tags
2024-12-27 13:56:06 -08:00
Frédéric Guillot
fc3c4873e5
doc: add note regarding validateUsername
2024-12-26 15:05:15 -08:00
Frédéric Guillot
b87c547a07
ci: run Docker tests only when the Dockerfiles are modified
2024-12-26 14:58:32 -08:00
Frédéric Guillot
3466e9e2d6
ci: avoid building Linux packages for each pull-request
2024-12-26 14:57:52 -08:00
Julien Voisin
8df4b780a8
refactor(readingtime): replace whatlanggo
with an ad-hoc implementation
...
The package `github.com/abadojack/whatlanggo` is unmaintained since 5 years, is
overkill for simply detecting CJK, and is quite slow.
2024-12-26 14:21:07 -08:00
Julien Voisin
e22520fc55
feat: validate usernames upon creation
...
The validation doesn't apply to already created usernames.
This should close #925
2024-12-26 14:14:07 -08:00
Julien Voisin
518bc4d6ff
refactor(database): add special handling for PostgreSQL-specific migrations
2024-12-26 14:09:37 -08:00
Julien Voisin
89620a7dd2
refactor(oauth2): no need to use io.WriteString
when sha256 provides a way to obtain a sum in a single call
2024-12-26 10:39:55 -08:00
Julien Voisin
bbfe39722a
ci: tighten the CodeQL rules
...
- don't run CodeQL on test files
- don't run CodeQL if no `.go` nor `.js` file have been modified.
2024-12-26 10:33:41 -08:00
Julien Voisin
f3989cdb2f
ci: checkout before installing Go
...
Obtaining the code before deploying go allows better caching, as the go.sum
file becomes available.
See https://github.com/actions/setup-go/issues/281
2024-12-23 21:24:22 -08:00
Julien Voisin
195b75d185
refactor(rewriter): use custom title case converter implementation instead of golang.org/x/text/cases.Title()
...
The implementation is equivalent to
`cases.Title(language.English).String(strings.ToLower(…))`,
and this is the only place in miniflux where
"golang.org/x/text/cases" and "golang.org/x/text/language"
are (directly) used.
This reduces the binary size from 27015590 to
26686112 on my machine.
Kudos to https://gsa.zxilly.dev for making it straightforward to catch things
like this.
2024-12-23 21:16:02 -08:00
Julien Voisin
f52411f734
ci: only run -race -cover
on Ubuntu
...
The coverage information isn't used anywhere in the CI, so no need to have it
for every OS. As for `-race`, there is no point in using it everywhere, one
time should be enough, especially since it's taking a lot of time on Windows.
2024-12-23 11:45:45 -08:00
Julien Voisin
b93543f416
feat: replace %{?systemd_requires}
with %{?systemd_ordering}
...
As said [in the documentation](https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_dependencies_on_the_systemd_package ):
> If the package wants to use systemd tools if they are available, but does not
want to declare a dependency, then the `%{?systemd_ordering}` macro MAY be used
as a weaker form of %{?systemd_requires} that only declares an ordering during
an RPM transaction.
See 2424b6bd71
and https://pagure.io/packaging-committee/issue/644 for more information.
And also use `--setopt=install_weak_deps=False` to avoid installing a lot of
useless dependencies.
2024-12-23 11:34:29 -08:00
Julien Voisin
057f760196
ci: don't run go vet ./...
as it's run as part of golangci-lint
...
See https://golangci-lint.run/usage/linters/#govet
2024-12-22 22:04:00 -08:00
Julien Voisin
28fe053329
ci: don't specify languages for CodeQL
...
As stated in the [documentation](https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning#changing-the-languages-that-are-analyzed ):
> CodeQL code scanning automatically detects code written in the supported languages.
This will also reduce the number of CodeQL jobs from two to one.
See #3029
2024-12-22 22:00:06 -08:00
Frédéric Guillot
d345c87376
docs(changelog): update release notes for version 2.2.4
2024-12-20 13:05:52 -08:00
jvoisin
bd91e5f320
Add more referer spoofing
...
Based on #2261 . For moyu.im/jandan.net, see https://github.com/DIYgod/RSSHub/issues/11528
2024-12-20 11:53:38 -08:00
dependabot[bot]
276b2d8b0b
build(deps): bump golang.org/x/net from 0.32.0 to 0.33.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.32.0 to 0.33.0.
- [Commits](https://github.com/golang/net/compare/v0.32.0...v0.33.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-12-18 17:41:28 -08:00
Sevi.C
bca9bea676
feat: add date-based entry filtering rules
2024-12-16 20:38:20 -08:00
dependabot[bot]
7346d751cc
build(deps): bump library/alpine in /packaging/docker/alpine
...
Bumps library/alpine from 3.20 to 3.21.
---
updated-dependencies:
- dependency-name: library/alpine
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-12-16 19:35:31 -08:00
jvoisin
7939b54341
Resize favicons to 32x32 to account of scaling
...
As suggested by @michaelkuhn in https://github.com/miniflux/v2/pull/2998#issuecomment-2546702212
2024-12-16 19:28:38 -08:00
jvoisin
a06657b74d
Factorise a line in internal/ui/static/js/app.js
2024-12-15 20:54:17 -08:00