aboutsummaryrefslogtreecommitdiff
path: root/model/postContext.go
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/postContext.go
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/postContext.go')
-rw-r--r--model/postContext.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/model/postContext.go b/model/postContext.go
new file mode 100644
index 0000000..90e5771
--- /dev/null
+++ b/model/postContext.go
@@ -0,0 +1,12 @@
+package model
+
+type PostContext struct {
+ DefaultVisibility string
+ ReplyContext *ReplyContext
+}
+
+type ReplyContext struct {
+ InReplyToID string
+ InReplyToName string
+ ReplyContent string
+}