[PATCH links] Fix issue when exporting data. This is left over from the migration from integer values to string/enum.
Export this patch
Changelog-fixed: Bug when a user wants to export their data.
---
models/models.go | 2 + -
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/models/models.go b/models/models.go
index b2d1ec5..67cc9b2 100644
--- a/models/models.go
+++ b/models/models.go
@@ -344,7 +344,7 @@ type ExportOrgLink struct {
Title string `db:"title" json:"title"`
Description string `db:"description" json:"description"`
URL string `db:"url" json:"url"`
- Visibility int `db:"visibility" json:"visibility"`
+ Visibility string `db:"visibility" json:"visibility"`
Unread bool `db:"unread" json:"unread"`
Starred bool `db:"starred" json:"starred"`
Hash string `db:"hash" json:"hash"`
--
2.52.0
Applied.
To git@git.code.netlandish.com:~netlandish/links
2201d25..6ddf2e8 master -> master