1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-15 18:57:04 +00:00

Apprise Service Urls per feed

This commit is contained in:
fuchsrot 2023-08-26 09:16:41 +02:00 committed by Frédéric Guillot
parent 939a91e99d
commit 32d33104a4
27 changed files with 58 additions and 8 deletions

View file

@ -240,10 +240,11 @@ func (s *Storage) CreateFeed(feed *model.Feed) error {
fetch_via_proxy,
hide_globally,
url_rewrite_rules,
no_media_player
no_media_player,
apprise_service_urls
)
VALUES
($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23)
($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24)
RETURNING
id
`
@ -272,6 +273,7 @@ func (s *Storage) CreateFeed(feed *model.Feed) error {
feed.HideGlobally,
feed.UrlRewriteRules,
feed.NoMediaPlayer,
feed.AppriseServiceURLs,
).Scan(&feed.ID)
if err != nil {
return fmt.Errorf(`store: unable to create feed %q: %v`, feed.FeedURL, err)
@ -342,7 +344,8 @@ func (s *Storage) UpdateFeed(feed *model.Feed) (err error) {
fetch_via_proxy=$23,
hide_globally=$24,
url_rewrite_rules=$25,
no_media_player=$26
no_media_player=$26,
apprise_service_urls=$29
WHERE
id=$27 AND user_id=$28
`
@ -375,6 +378,7 @@ func (s *Storage) UpdateFeed(feed *model.Feed) (err error) {
feed.NoMediaPlayer,
feed.ID,
feed.UserID,
feed.AppriseServiceURLs,
)
if err != nil {