Skip to content

Conversation

@davidmerfield
Copy link
Owner

@davidmerfield davidmerfield commented Nov 28, 2025

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +129 to +133
return Entry.get(blogID, linkedPath, function (err, entry) {
if (err) {
debug("Error fetching entry for embedded markdown", err);
return next();
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Handle Entry.get callback without error argument

When embedding markdown media, Entry.get is called with an (err, entry) callback, but Entry.get (app/models/entry/get.js:9-50) passes the entry as the first and only argument and throws on errors. As a result the entry object is treated as err, the error check fires, and the branch returns before replacing the node or adding dependencies, so markdown wikilink embeds never render. Adjust the callback to match the actual signature so markdown embeds are processed.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants