|
@ -490,12 +490,15 @@ func (s *LogService) EditPost(ctx context.Context, id string, update models.Post |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
_, err = s.refreshLogCharacters(ctx, *l, nil, false) |
|
|
|
|
|
|
|
|
timeout, cancel := context.WithTimeout(context.Background(), time.Minute*10) |
|
|
|
|
|
defer cancel() |
|
|
|
|
|
|
|
|
|
|
|
s.changeService.Submit(timeout, models.ChangeModelPost, "edit", true, changekeys.Many(l, post), post) |
|
|
|
|
|
|
|
|
|
|
|
_, err = s.refreshLogCharacters(timeout, *l, nil, false) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
log.Printf("Failed to update characters in log %s: %s", l.ID, err) |
|
|
log.Printf("Failed to update characters in log %s: %s", l.ID, err) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
s.changeService.Submit(ctx, models.ChangeModelPost, "edit", true, changekeys.Many(l, post), post) |
|
|
|
|
|
}() |
|
|
}() |
|
|
|
|
|
|
|
|
return post, nil |
|
|
return post, nil |
|
|