diff options
Diffstat (limited to 'model')
-rw-r--r-- | model/postContext.go (renamed from model/replyContext.go) | 5 | ||||
-rw-r--r-- | model/session.go | 1 | ||||
-rw-r--r-- | model/settings.go | 1 |
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"` } |