Skip to content

Commit

Permalink
fix: bug that filename is empty when first posting
Browse files Browse the repository at this point in the history
  • Loading branch information
d-tsuji committed Apr 24, 2020
1 parent a9a63bb commit d9043ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,14 @@ func (b *Broker) PostArticle(body *PostItem) error {
Private: r.Private,
},
Item: &Item{
ID: r.ID,
Title: r.Title,
Tags: r.Tags,
Body: r.Body,
User: r.User,
CreatedAt: r.CreatedAt,
UpdatedAt: r.UpdatedAt,
Private: r.Private,
},
}

Expand Down

0 comments on commit d9043ae

Please sign in to comment.