tangled
alpha
login
or
join now
roost.moe
/
recipes.blue
2
fork
atom
The recipes.blue monorepo
recipes.blue
recipes
appview
atproto
2
fork
atom
overview
issues
1
pulls
pipelines
fix: resolve imageUrl to null if necessary
Hayden Young
1 year ago
33916c7d
ee3a0b96
+6
-2
1 changed file
expand all
collapse all
unified
split
apps
api
src
xrpc
index.ts
+6
-2
apps/api/src/xrpc/index.ts
···
52
52
description: r.description || undefined,
53
53
ingredients: r.ingredientsCount as number,
54
54
steps: r.stepsCount as number,
55
55
-
imageUrl: `https://cdn.bsky.app/img/feed_thumbnail/plain/${r.authorDid}/${r.imageRef}@jpeg`,
55
55
+
imageUrl: r.imageRef
56
56
+
? `https://cdn.bsky.app/img/feed_thumbnail/plain/${r.authorDid}/${r.imageRef}@jpeg`
57
57
+
: null,
56
58
});
57
59
58
60
for (const result of recipes) {
···
112
114
description: recipe.description,
113
115
ingredients: recipe.ingredients,
114
116
steps: recipe.steps,
115
115
-
imageUrl: `https://cdn.bsky.app/img/feed_thumbnail/plain/${recipe.authorDid}/${recipe.imageRef}@jpeg`,
117
117
+
imageUrl: recipe.imageRef
118
118
+
? `https://cdn.bsky.app/img/feed_thumbnail/plain/${recipe.authorDid}/${recipe.imageRef}@jpeg`
119
119
+
: null,
116
120
},
117
121
});
118
122
});