ai cooking
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

leave our one old album showcase alone error on others (#445)

Co-authored-by: paul miller <paul.miller>

authored by

Paul Miller
paul miller
and committed by
GitHub
df860115 5460c829

+11
+11
internal/recipes/server.go
··· 184 184 loadWG.Wait() 185 185 186 186 if recipe.OriginHash == "" { 187 + // Would like to make this an error however this in album is missing a origin hash and its too pretty to break 188 + // https://careme.cooking/recipe/mQs4oIYMJoqCmqDMXv74bA== 189 + if hash == "mQs4oIYMJoqCmqDMXv74bA==" { 190 + slog.InfoContext(ctx, "recipe missing origin hash Probably and old recipe", "hash", hash) 191 + p := DefaultParams(&locations.Location{ 192 + ID: "", 193 + Name: "Unknown Location", 194 + }, time.Now()) 195 + FormatRecipeHTML(ctx, p, *recipe, signedIn, hasRecipeImage, thread, feedback, wineRecommendation, w) 196 + return 197 + } 187 198 slog.ErrorContext(ctx, "No origin hash for recipe", "hash", hash, "error", err) 188 199 http.Error(w, "recipe not found or expired", http.StatusInternalServerError) 189 200 return