Skip to content

Commit

Permalink
fix(micropub): panic when WithGetVisibility was not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Nov 22, 2023
1 parent cc4d56d commit 17c450d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Security

## [0.2.2]

### Added

### Changed

### Deprecated

### Removed

### Fixed

- Micropub: fixes panic when `WithGetVisibility` was not provided.

### Security

## [0.2.1]

### Added
Expand Down
1 change: 1 addition & 0 deletions micropub/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ func NewHandler(impl Implementation, options ...Option) http.Handler {
GetChannels: func() []Channel { return nil },
GetCategories: func() []string { return nil },
GetPostTypes: func() []PostType { return nil },
GetVisibility: func() []string { return nil },
}

for _, opt := range options {
Expand Down

0 comments on commit 17c450d

Please sign in to comment.