Remove the topic_featured_link_onebox setting. We will always try to onebox a link and add it to the body if topic_featured_link_enabled is enabled.

This commit is contained in:
Neil Lalonde
2016-12-09 13:28:12 -05:00
parent f07443b488
commit a4c4f13901
7 changed files with 8 additions and 31 deletions

View File

@ -41,9 +41,9 @@ test('missingReplyCharacters', function() {
missingReplyCharacters('hi', false, true, Discourse.SiteSettings.min_first_post_length - 2, 'too short first post');
missingReplyCharacters('hi', true, false, Discourse.SiteSettings.min_private_message_post_length - 2, 'too short private message');
Discourse.SiteSettings.topic_featured_link_onebox = true;
const composer = createComposer({ canEditTopicFeaturedLink: true });
equal(composer.get('missingReplyCharacters'), 0, "don't require any post content");
// TODO: test that presence of featured link makes this test pass
// const composer = createComposer({ canEditTopicFeaturedLink: true });
// equal(composer.get('missingReplyCharacters'), 0, "don't require any post content");
});
test('missingTitleCharacters', function() {