[bugfix] Fix new domain block date (#893)

This commit is contained in:
tobi
2022-10-06 12:48:17 +02:00
committed by GitHub
parent f8528aa689
commit 5cf0f9950a
4 changed files with 11 additions and 14 deletions

View File

@ -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() {