mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-02 10:04:22 +00:00
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:
parent
3af4361927
commit
2678f33157
13 changed files with 126 additions and 70 deletions
|
@ -1,5 +1,10 @@
|
|||
package model
|
||||
|
||||
type PostContext struct {
|
||||
DefaultVisibility string
|
||||
ReplyContext *ReplyContext
|
||||
}
|
||||
|
||||
type ReplyContext struct {
|
||||
InReplyToID string
|
||||
InReplyToName string
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
package model
|
||||
|
||||
type Settings struct {
|
||||
DefaultVisibility string `json:"default_visibility"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue