mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-18 03:53:02 -06:00
move stuff around + further work on domain blocks
This commit is contained in:
parent
c7192c0431
commit
5e2ba03adc
29 changed files with 279 additions and 50 deletions
|
|
@ -57,3 +57,8 @@ func (m *Module) DomainBlocksPOSTHandler(c *gin.Context) {
|
|||
|
||||
c.JSON(http.StatusOK, domainBlock)
|
||||
}
|
||||
|
||||
func validateCreateDomainBlock(form *model.DomainBlockCreateRequest) error {
|
||||
// TODO: add some validation here later if necessary
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ package model
|
|||
|
||||
// DomainBlock represents a block on one domain
|
||||
type DomainBlock struct {
|
||||
ID string `json:"id"`
|
||||
Domain string `json:"domain"`
|
||||
Obfuscate bool `json:"obfuscate"`
|
||||
PrivateComment string `json:"private_comment"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue