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
This commit is contained in:
r 2019-12-21 13:26:31 +00:00
parent 3af4361927
commit 2678f33157
13 changed files with 126 additions and 70 deletions

View file

@ -1,5 +1,10 @@
package model
type PostContext struct {
DefaultVisibility string
ReplyContext *ReplyContext
}
type ReplyContext struct {
InReplyToID string
InReplyToName string

View file

@ -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)
}

View file

@ -1,4 +1,5 @@
package model
type Settings struct {
DefaultVisibility string `json:"default_visibility"`
}