aboutsummaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2019-12-21 13:26:31 +0000
committerr <r@freesoftwareextremist.com>2019-12-21 13:26:31 +0000
commit2678f33157d147ba548793709cd8fbaabb4eaae2 (patch)
tree37d4775452f68dc8a52f3156758dc3475feeda68 /model
parent3af4361927d65b896ac3f9e2f0170cbbef63c0c0 (diff)
downloadbloat-2678f33157d147ba548793709cd8fbaabb4eaae2.tar.gz
bloat-2678f33157d147ba548793709cd8fbaabb4eaae2.zip
Add support for scopes
- Add scope selection for for new post - Save new post scope in db - Copy scope on reply - Show scope icon on posts
Diffstat (limited to 'model')
-rw-r--r--model/postContext.go (renamed from model/replyContext.go)5
-rw-r--r--model/session.go1
-rw-r--r--model/settings.go1
3 files changed, 6 insertions, 1 deletions
diff --git a/model/replyContext.go b/model/postContext.go
index b17aacb..90e5771 100644
--- a/model/replyContext.go
+++ b/model/postContext.go
@@ -1,5 +1,10 @@
package model
+type PostContext struct {
+ DefaultVisibility string
+ ReplyContext *ReplyContext
+}
+
type ReplyContext struct {
InReplyToID string
InReplyToName string
diff --git a/model/session.go b/model/session.go
index 42c0aff..fce6173 100644
--- a/model/session.go
+++ b/model/session.go
@@ -17,7 +17,6 @@ type Session struct {
type SessionRepository interface {
Add(session Session) (err error)
- Update(sessionID string, accessToken string) (err error)
Get(sessionID string) (session Session, err error)
}
diff --git a/model/settings.go b/model/settings.go
index ad7ec0f..7afe936 100644
--- a/model/settings.go
+++ b/model/settings.go
@@ -1,4 +1,5 @@
package model
type Settings struct {
+ DefaultVisibility string `json:"default_visibility"`
}