Skip to content

Commit

Permalink
start with empty model
Browse files Browse the repository at this point in the history
  • Loading branch information
stackdump committed Jan 29, 2024
1 parent d35915c commit 9c26fe2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ func (app *App) AppPage(vars map[string]string, w http.ResponseWriter, r *http.R
http.Redirect(w, r, "/p/"+cid+"/", http.StatusFound)
return
}
m := model.Model{}
m := model.Model{
Zblob: &model.Zblob{
IpfsCid: cid,
},
}
if vars["pflowCid"] != "" {
m = app.Storage.Model.GetByCid(vars["pflowCid"]).ToModel()
if m.ID != 0 && m.IpfsCid == vars["pflowCid"] {
Expand Down

0 comments on commit 9c26fe2

Please sign in to comment.