Add change summaries, inline diff hunks and screenshots to reviews
This commit is contained in:
@@ -11,6 +11,15 @@ import (
|
||||
"g.fc.run/misc/byre/internal/api"
|
||||
)
|
||||
|
||||
const MaxBlobBytes = 5 << 20
|
||||
|
||||
var ImageTypes = map[string]bool{
|
||||
"image/png": true,
|
||||
"image/jpeg": true,
|
||||
"image/gif": true,
|
||||
"image/webp": true,
|
||||
}
|
||||
|
||||
func (s *Store) CreateBlob(ctx context.Context, contentType string, data []byte, actor string) (api.Blob, error) {
|
||||
b := api.Blob{
|
||||
Id: NewID(),
|
||||
|
||||
Reference in New Issue
Block a user