@rmdes/indiekit-endpoint-microsub 1.0.57 → 1.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -222,9 +222,10 @@ export async function item(request, response) {
|
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
// Get the channel for this item (needed for mark-read)
|
|
225
|
+
// Note: transformToJf2() renames channelId → _channelId (string)
|
|
225
226
|
let channel = null;
|
|
226
|
-
if (itemDocument.
|
|
227
|
-
channel = await getChannelById(application, itemDocument.
|
|
227
|
+
if (itemDocument._channelId) {
|
|
228
|
+
channel = await getChannelById(application, itemDocument._channelId);
|
|
228
229
|
}
|
|
229
230
|
|
|
230
231
|
const itemBreadcrumbs = [
|
package/package.json
CHANGED