mirror of
https://github.com/miniflux/v2.git
synced 2025-07-02 16:38:37 +00:00
feat(integrations/ntfy): make ntfy topics configurable per feed, with default one as fallback
This commit is contained in:
parent
3b8ac8b16a
commit
80ca9b240b
27 changed files with 69 additions and 23 deletions
|
@ -361,10 +361,11 @@ func (s *Storage) UpdateFeed(feed *model.Feed) (err error) {
|
|||
description=$30,
|
||||
ntfy_enabled=$31,
|
||||
ntfy_priority=$32,
|
||||
pushover_enabled=$33,
|
||||
pushover_priority=$34
|
||||
ntfy_topic=$33,
|
||||
pushover_enabled=$34,
|
||||
pushover_priority=$35
|
||||
WHERE
|
||||
id=$35 AND user_id=$36
|
||||
id=$36 AND user_id=$37
|
||||
`
|
||||
_, err = s.db.Exec(query,
|
||||
feed.FeedURL,
|
||||
|
@ -399,6 +400,7 @@ func (s *Storage) UpdateFeed(feed *model.Feed) (err error) {
|
|||
feed.Description,
|
||||
feed.NtfyEnabled,
|
||||
feed.NtfyPriority,
|
||||
feed.NtfyTopic,
|
||||
feed.PushoverEnabled,
|
||||
feed.PushoverPriority,
|
||||
feed.ID,
|
||||
|
|
|
@ -169,6 +169,7 @@ func (f *FeedQueryBuilder) GetFeeds() (model.Feeds, error) {
|
|||
f.disable_http2,
|
||||
f.ntfy_enabled,
|
||||
f.ntfy_priority,
|
||||
f.ntfy_topic,
|
||||
f.pushover_enabled,
|
||||
f.pushover_priority
|
||||
FROM
|
||||
|
@ -242,6 +243,7 @@ func (f *FeedQueryBuilder) GetFeeds() (model.Feeds, error) {
|
|||
&feed.DisableHTTP2,
|
||||
&feed.NtfyEnabled,
|
||||
&feed.NtfyPriority,
|
||||
&feed.NtfyTopic,
|
||||
&feed.PushoverEnabled,
|
||||
&feed.PushoverPriority,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue