1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-01 17:38:37 +00:00

Add readability package to fetch original content

This commit is contained in:
Frédéric Guillot 2017-12-10 19:01:38 -08:00
parent b75a9987ba
commit 7a35c58f53
17 changed files with 545 additions and 70 deletions

View file

@ -59,6 +59,23 @@ func (s *Storage) CreateEntry(entry *model.Entry) error {
return nil
}
// UpdateEntryContent updates entry content.
func (s *Storage) UpdateEntryContent(entry *model.Entry) error {
query := `
UPDATE entries SET
content=$1
WHERE user_id=$2 AND id=$3
`
_, err := s.db.Exec(
query,
entry.Content,
entry.UserID,
entry.ID,
)
return err
}
// UpdateEntry update an entry when a feed is refreshed.
func (s *Storage) UpdateEntry(entry *model.Entry) error {
query := `