Michael Kuhn
35edd8ea92
Fix clicking unread counter
...
When clicking the unread counter, the following exception occurs:
```
Uncaught TypeError: Cannot read properties of null (reading 'getAttribute')
```
This is due to `onClickMainMenuListItem` not working correctly for the
unread counter `span`s, which return `null` when using `querySelector`.
2024-04-09 20:36:42 -07:00
Alexandros Kosiaris
f0cb041885
Add back removed other repo owners in GH docker actions
...
In cf96ab45c1
, support was added for using Docker related Github
actions in repositories of other owners. This was pretty helpful as it
allowed running modified forks off of main in a nightly fashion before
patches were pushed upstream. This was 6e870cdccc
, add it
back
2024-04-06 11:31:29 -07:00
Frédéric Guillot
fdd1b3f18e
database: entry URLs can exceeds btree index size limit
2024-04-04 20:22:23 -07:00
Frédéric Guillot
6e870cdccc
ci: use docker/metadata-action instead of deprecated shell-scripts
2024-04-04 18:04:32 -07:00
Michael Kuhn
194f517be8
Improve Dockerfiles
...
- Specify Docker registry explicitly (e.g., Podman does not use
`docker.io` by default)
- Use `make miniflux` instead of duplicating `go build` arguments (this
leverages Go's PIE build mode)
- Enable cgo to fix ARM containers (we need to make sure to use the same
OS version for both container stages to avoid libc issues)
2024-04-04 17:36:28 -07:00
dependabot[bot]
11fd1c935e
Bump golang.org/x/net from 0.23.0 to 0.24.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.23.0 to 0.24.0.
- [Commits](https://github.com/golang/net/compare/v0.23.0...v0.24.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-04-04 16:37:41 -07:00
dependabot[bot]
47e1111908
Bump golang.org/x/term from 0.18.0 to 0.19.0
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.18.0 to 0.19.0.
- [Commits](https://github.com/golang/term/compare/v0.18.0...v0.19.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-04 16:08:16 -07:00
dependabot[bot]
c5b812eb7b
Bump golang.org/x/oauth2 from 0.18.0 to 0.19.0
...
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2 ) from 0.18.0 to 0.19.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.18.0...v0.19.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>
2024-04-04 15:46:40 -07:00
dependabot[bot]
53be550e8a
Bump github.com/yuin/goldmark from 1.7.0 to 1.7.1
...
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark ) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/yuin/goldmark/releases )
- [Commits](https://github.com/yuin/goldmark/compare/v1.7.0...v1.7.1 )
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-03 17:30:47 -07:00
dependabot[bot]
d0d693a6ef
Bump golang.org/x/net from 0.22.0 to 0.23.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.22.0...v0.23.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-04-03 17:30:26 -07:00
Evan Elias Young
1b8c45d162
finder: Find feed from YouTube playlist
...
The feed from a YouTube playlist page is derived in practically the same way as a feed from a YouTube channel page.
2024-04-01 21:16:32 -07:00
jvoisin
19ce519836
reader/rewrite: add a rule for oglaf.com
...
By default, Oglaf show some disclaimer/warning about its content, and this
doesn't play well with rss readers, so let's rewrite it to show the actual
comic instead of a placeholder.
2024-04-01 21:05:01 -07:00
Thomas J Faughnan Jr
3e0d5de7a3
api tests: use intSize-agnostic random integers
...
rand.Intn(math.MaxInt64) causes tests to fail on 32-bit architectures.
Use the simpler rand.Int() instead, which still provides plenty of room
for generating pseudo-random test usernames.
2024-04-01 21:02:48 -07:00
Frédéric Guillot
0336774e8c
Update ChangeLog
2024-03-30 14:39:41 -07:00
Jean Khawand
756dd449cc
integration/webhook: add category title to request body
2024-03-29 16:37:05 -07:00
Taylan Tatlı
a0b4665080
Turkish Translation Update
2024-03-28 19:09:24 -07:00
dependabot[bot]
6592c1ad6b
Bump dominikh/staticcheck-action from 1.3.0 to 1.3.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-25 17:02:21 -07:00
jvoisin
f109e3207c
reader/rss: don't add empty tags to RSS items
...
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-24 19:46:56 -07:00
Romain de Laage
b54fe66809
fix: do not store empty tags
2024-03-24 14:50:18 -07:00
jvoisin
93c9d43497
http/response: get rid of the X-XSS-Protection header
...
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-24 13:45:38 -07:00
Frédéric Guillot
e3b3c40c28
timezone: make sure the tests pass when the timezone database is not installed on the host
2024-03-24 13:25:02 -07:00
Frédéric Guillot
068790fc19
integration: fix rssbrige import
2024-03-24 12:42:29 -07:00
Frédéric Guillot
41d99c517f
Update GitHub PR template
2024-03-23 14:34:03 -07:00
Frédéric Guillot
3db3f9884f
cli: avoid misleading error message when creating an admin user
2024-03-23 14:32:55 -07:00
Frédéric Guillot
ad1d349a0c
rss: use Channel tags only if there is no Item tags
2024-03-23 13:46:48 -07:00
Jean Khawand
7ee4a731af
Update miniflux.1
2024-03-21 19:59:02 -07:00
Jean Khawand
3c822a45ac
Update miniflux.1
...
#2187 #2543
2024-03-21 19:59:02 -07:00
Frédéric Guillot
c2311e316c
Rename PROXY_* options to MEDIA_PROXY_*
2024-03-20 21:28:28 -07:00
jvoisin
ed20771194
Enable trusted-types
...
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-20 17:50:37 -07:00
jvoisin
beb8c80787
Replace a bunch of let
with const
...
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-20 17:36:01 -07:00
jvoisin
fc4bdf3ab0
Inline a one-liner function
...
No need to expose a symbol for this.
2024-03-20 17:21:30 -07:00
Frédéric Guillot
6bc819e198
man page: sort config options in alphabetical order
2024-03-19 22:22:24 -07:00
Frédéric Guillot
08640b27d5
Ensure enclosure URLs are always absolute
2024-03-19 21:57:46 -07:00
jvoisin
4be993e055
Minor refactoring of internal/reader/atom/atom_10_adapter.go
...
- 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-19 20:41:44 -07:00
jvoisin
9df12177eb
Minor idiomatic pass on internal/http/request/context.go
2024-03-19 20:21:23 -07:00
Jean Khawand
a78d1c79da
Add FILTER_ENTRY_MAX_AGE_DAYS
config option to limit fetching all feed items
2024-03-20 02:58:53 +00:00
Matt Behrens
1ea3953271
Add keyboard shortcuts for scrolling to top/bottom of the item list
2024-03-19 19:30:38 -07:00
dependabot[bot]
fe8b7a907e
Bump github.com/coreos/go-oidc/v3 from 3.9.0 to 3.10.0
...
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-19 19:09:08 -07:00
Frédéric Guillot
a15cdb1655
Fix regression in AbsoluteProxifyURL()
...
Regression introduced in commit 66b8483791
PR #2499
2024-03-18 20:48:20 -07:00
Frédéric Guillot
fa9697b972
Remove trailing space in SiteURL and FeedURL
2024-03-18 17:51:06 -07:00
jvoisin
8e28e41b02
Use struct embedding to reduce code duplication
2024-03-18 16:23:44 -07:00
jvoisin
e2ee74428a
Minor concatenation-related simplifications in internal/storage/
...
Use plain strings concatenation instead of
building an array and then joining it.
2024-03-18 16:20:55 -07:00
jvoisin
863a5b3648
Simplify removeDuplicates
...
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-18 16:13:32 -07:00
jvoisin
91f5522ce0
Minor simplification of internal/reader/media/media.go
...
- 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-18 16:09:32 -07:00
Frédéric Guillot
8212f16aa2
atom: avoid debug message when the date is empty
2024-03-17 15:29:50 -07:00
Frédéric Guillot
b1e73fafdf
Enable go-critic linter and fix various issues detected
2024-03-17 13:52:34 -07:00
Frédéric Guillot
f6404290ba
Replace Optional{Int,Int64,Float64} with a generic function OptionalNumber()
2024-03-17 12:25:55 -07:00
jvoisin
c29ca0e313
Minor simplifications of the rewriter
...
- 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-17 12:15:46 -07:00
jvoisin
02a074ed26
Compile block/keep regex only once per feed
...
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-17 12:08:03 -07:00
Romain de Laage
00dabc1d3c
feat: Media player: Conrol playback speed
...
fix #1845
2024-03-17 11:53:30 -07:00