Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
🔥 remove markdown attribute from Post model (#720)
Browse files Browse the repository at this point in the history
refs TryGhost/Ghost#8479

- remove unused `ed-image-manager` util
- remove `markdown` attribute from Post model
  • Loading branch information
kevinansfield authored and kirrg001 committed May 30, 2017
1 parent 0d40a60 commit 6d9997c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 43 deletions.
1 change: 0 additions & 1 deletion app/models/post.js
Expand Up @@ -76,7 +76,6 @@ export default Model.extend(Comparable, ValidationEngine, {
uuid: attr('string'),
title: attr('string', {defaultValue: ''}),
slug: attr('string'),
markdown: attr('string', {defaultValue: ''}),
mobiledoc: attr('json-string', {defaultValue: () => BLANK_DOC}),
html: attr('string'),
featureImage: attr('string'),
Expand Down
40 changes: 0 additions & 40 deletions app/utils/ed-image-manager.js

This file was deleted.

1 change: 0 additions & 1 deletion mirage/factories/post.js
Expand Up @@ -5,7 +5,6 @@ export default Factory.extend({
title(i) { return `Post ${i}`; },
description(i) { return `Title for post ${i}.`; },
slug(i) { return `post-${i}`; },
markdown(i) { return `Markdown for post ${i}.`; },
html(i) { return `<p>HTML for post ${i}.</p>`; },
plaintext(i) { return `Plaintext for post ${i}.`; },
featureImage(i) { return `/content/images/2015/10/post-${i}.jpg`; },
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/authentication-test.js
Expand Up @@ -158,7 +158,7 @@ describe('Acceptance: Authentication', function () {
let post = posts.find(params.id);
let attrs = this.normalizedRequestAttrs();

if (attrs.markdown === 'Edited post body') {
if (attrs.mobiledoc.cards[0][1].markdown === 'Edited post body') {
return new Response(401, {}, {
errors: [
{message: 'Access denied.', errorType: 'UnauthorizedError'}
Expand Down

0 comments on commit 6d9997c

Please sign in to comment.