mirror of
https://github.com/miniflux/v2.git
synced 2025-09-15 18:57:04 +00:00
Add RSS-Bridge integration
This commit is contained in:
parent
5e6c054345
commit
120aabfbce
29 changed files with 161 additions and 5 deletions
|
@ -174,7 +174,9 @@ func (s *Storage) Integration(userID int64) (*model.Integration, error) {
|
|||
shaarli_api_secret,
|
||||
webhook_enabled,
|
||||
webhook_url,
|
||||
webhook_secret
|
||||
webhook_secret,
|
||||
rssbridge_enabled,
|
||||
rssbridge_url
|
||||
FROM
|
||||
integrations
|
||||
WHERE
|
||||
|
@ -248,6 +250,8 @@ func (s *Storage) Integration(userID int64) (*model.Integration, error) {
|
|||
&integration.WebhookEnabled,
|
||||
&integration.WebhookURL,
|
||||
&integration.WebhookSecret,
|
||||
&integration.RSSBridgeEnabled,
|
||||
&integration.RSSBridgeURL,
|
||||
)
|
||||
switch {
|
||||
case err == sql.ErrNoRows:
|
||||
|
@ -329,9 +333,11 @@ func (s *Storage) UpdateIntegration(integration *model.Integration) error {
|
|||
shaarli_api_secret=$62,
|
||||
webhook_enabled=$63,
|
||||
webhook_url=$64,
|
||||
webhook_secret=$65
|
||||
webhook_secret=$65,
|
||||
rssbridge_enabled=$66,
|
||||
rssbridge_url=$67
|
||||
WHERE
|
||||
user_id=$66
|
||||
user_id=$68
|
||||
`
|
||||
_, err := s.db.Exec(
|
||||
query,
|
||||
|
@ -400,6 +406,8 @@ func (s *Storage) UpdateIntegration(integration *model.Integration) error {
|
|||
integration.WebhookEnabled,
|
||||
integration.WebhookURL,
|
||||
integration.WebhookSecret,
|
||||
integration.RSSBridgeEnabled,
|
||||
integration.RSSBridgeURL,
|
||||
integration.UserID,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue