Skip to content

Commit

Permalink
Enforce 255 char limit on post titles
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulAdamDavis committed Nov 28, 2024
1 parent fe1d263 commit 1b145ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/mg-json/lib/to-ghost-json/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default (json, ctx = null) => {

// String length data from https://github.com/TryGhost/Ghost/blob/main/ghost/core/core/server/data/schema/schema.js
let properties = {
title: 255,
slug: 191,
custom_excerpt: 300,
og_title: 300,
Expand Down

0 comments on commit 1b145ac

Please sign in to comment.