summaryrefslogtreecommitdiff
path: root/internal/processing/admin
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-10-06 12:48:17 +0200
committerLibravatar GitHub <noreply@github.com>2022-10-06 12:48:17 +0200
commit5cf0f9950a95cf46fda6ba8f479aa4728eba5ec4 (patch)
tree560428ae18c9f9890e4195da1abcbd76401d3a1c /internal/processing/admin
parent[feature] Add emoji image size to instance response (#892) (diff)
downloadgotosocial-5cf0f9950a95cf46fda6ba8f479aa4728eba5ec4.tar.xz
[bugfix] Fix new domain block date (#893)
Diffstat (limited to 'internal/processing/admin')
-rw-r--r--internal/processing/admin/createdomainblock.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/processing/admin/createdomainblock.go b/internal/processing/admin/createdomainblock.go
index 690160150..c39a91989 100644
--- a/internal/processing/admin/createdomainblock.go
+++ b/internal/processing/admin/createdomainblock.go
@@ -56,7 +56,7 @@ func (p *processor) DomainBlockCreate(ctx context.Context, account *gtsmodel.Acc
return nil, gtserror.NewErrorInternalError(fmt.Errorf("error creating id for new domain block %s: %s", domain, err))
}
- newBlock := gtsmodel.DomainBlock{
+ newBlock := &gtsmodel.DomainBlock{
ID: blockID,
Domain: domain,
CreatedByAccountID: account.ID,
@@ -72,7 +72,7 @@ func (p *processor) DomainBlockCreate(ctx context.Context, account *gtsmodel.Acc
}
// Set the newly created block
- block = &newBlock
+ block = newBlock
// Process the side effects of the domain block asynchronously since it might take a while
go func() {