summaryrefslogtreecommitdiff
path: root/internal/gtsmodel/domainallow.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-11-21 14:09:58 +0100
committerLibravatar GitHub <noreply@github.com>2024-11-21 13:09:58 +0000
commit301543616b5376585a7caff097499421acdf1806 (patch)
tree4cac6aea2c33687b1339fc3bc18e6eb64def6f9a /internal/gtsmodel/domainallow.go
parent[feature] Allow emoji shortcode to be 1-character length (#3556) (diff)
downloadgotosocial-301543616b5376585a7caff097499421acdf1806.tar.xz
[feature] Add domain permission drafts and excludes (#3547)
* [feature] Add domain permission drafts and excludes * fix typescript complaining * lint * make filenames more consistent * test own domain excluded
Diffstat (limited to 'internal/gtsmodel/domainallow.go')
-rw-r--r--internal/gtsmodel/domainallow.go28
1 files changed, 28 insertions, 0 deletions
diff --git a/internal/gtsmodel/domainallow.go b/internal/gtsmodel/domainallow.go
index 2a3e53e79..7b947333b 100644
--- a/internal/gtsmodel/domainallow.go
+++ b/internal/gtsmodel/domainallow.go
@@ -45,6 +45,10 @@ func (d *DomainAllow) GetUpdatedAt() time.Time {
return d.UpdatedAt
}
+func (d *DomainAllow) SetUpdatedAt(i time.Time) {
+ d.UpdatedAt = i
+}
+
func (d *DomainAllow) GetDomain() string {
return d.Domain
}
@@ -53,26 +57,50 @@ func (d *DomainAllow) GetCreatedByAccountID() string {
return d.CreatedByAccountID
}
+func (d *DomainAllow) SetCreatedByAccountID(i string) {
+ d.CreatedByAccountID = i
+}
+
func (d *DomainAllow) GetCreatedByAccount() *Account {
return d.CreatedByAccount
}
+func (d *DomainAllow) SetCreatedByAccount(i *Account) {
+ d.CreatedByAccount = i
+}
+
func (d *DomainAllow) GetPrivateComment() string {
return d.PrivateComment
}
+func (d *DomainAllow) SetPrivateComment(i string) {
+ d.PrivateComment = i
+}
+
func (d *DomainAllow) GetPublicComment() string {
return d.PublicComment
}
+func (d *DomainAllow) SetPublicComment(i string) {
+ d.PublicComment = i
+}
+
func (d *DomainAllow) GetObfuscate() *bool {
return d.Obfuscate
}
+func (d *DomainAllow) SetObfuscate(i *bool) {
+ d.Obfuscate = i
+}
+
func (d *DomainAllow) GetSubscriptionID() string {
return d.SubscriptionID
}
+func (d *DomainAllow) SetSubscriptionID(i string) {
+ d.SubscriptionID = i
+}
+
func (d *DomainAllow) GetType() DomainPermissionType {
return DomainPermissionAllow
}