mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 15:42:25 -05:00
[bugfix] Fix new domain block date (#893)
This commit is contained in:
parent
f8528aa689
commit
5cf0f9950a
4 changed files with 11 additions and 14 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue