From 5cf0f9950a95cf46fda6ba8f479aa4728eba5ec4 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Thu, 6 Oct 2022 12:48:17 +0200 Subject: [bugfix] Fix new domain block date (#893) --- internal/processing/admin/createdomainblock.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/processing/admin/createdomainblock.go') 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 := >smodel.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() { -- cgit v1.2.3