mirror of
https://github.com/miniflux/v2.git
synced 2025-07-27 17:28:38 +00:00
feat: adding support for saving entries to karakeep
Signed-off-by: Jesse Jaggars <jhjaggars@gmail.com>
This commit is contained in:
parent
4e181330d0
commit
93177365ac
28 changed files with 247 additions and 23 deletions
|
@ -220,7 +220,10 @@ func (s *Storage) Integration(userID int64) (*model.Integration, error) {
|
|||
pushover_token,
|
||||
pushover_device,
|
||||
pushover_prefix,
|
||||
rssbridge_token
|
||||
rssbridge_token,
|
||||
karakeep_enabled,
|
||||
karakeep_api_key,
|
||||
karakeep_url
|
||||
FROM
|
||||
integrations
|
||||
WHERE
|
||||
|
@ -340,6 +343,9 @@ func (s *Storage) Integration(userID int64) (*model.Integration, error) {
|
|||
&integration.PushoverDevice,
|
||||
&integration.PushoverPrefix,
|
||||
&integration.RSSBridgeToken,
|
||||
&integration.KarakeepEnabled,
|
||||
&integration.KarakeepAPIKey,
|
||||
&integration.KarakeepURL,
|
||||
)
|
||||
switch {
|
||||
case err == sql.ErrNoRows:
|
||||
|
@ -467,9 +473,12 @@ func (s *Storage) UpdateIntegration(integration *model.Integration) error {
|
|||
pushover_token=$108,
|
||||
pushover_device=$109,
|
||||
pushover_prefix=$110,
|
||||
rssbridge_token=$111
|
||||
rssbridge_token=$111,
|
||||
karakeep_enabled=$112,
|
||||
karakeep_api_key=$113,
|
||||
karakeep_url=$114
|
||||
WHERE
|
||||
user_id=$112
|
||||
user_id=$115
|
||||
`
|
||||
_, err := s.db.Exec(
|
||||
query,
|
||||
|
@ -584,6 +593,9 @@ func (s *Storage) UpdateIntegration(integration *model.Integration) error {
|
|||
integration.PushoverDevice,
|
||||
integration.PushoverPrefix,
|
||||
integration.RSSBridgeToken,
|
||||
integration.KarakeepEnabled,
|
||||
integration.KarakeepAPIKey,
|
||||
integration.KarakeepURL,
|
||||
integration.UserID,
|
||||
)
|
||||
|
||||
|
@ -622,6 +634,7 @@ func (s *Storage) HasSaveEntry(userID int64) (result bool) {
|
|||
shaarli_enabled='t' OR
|
||||
webhook_enabled='t' OR
|
||||
omnivore_enabled='t' OR
|
||||
karakeep_enabled='t' OR
|
||||
raindrop_enabled='t' OR
|
||||
betula_enabled='t' OR
|
||||
cubox_enabled='t' OR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue