Remove the open_topic_featured_link_in_external_window setting. Use the user preference.

This commit is contained in:
Neil Lalonde 2016-12-09 13:48:29 -05:00
parent a4c4f13901
commit a62b028e16
3 changed files with 3 additions and 6 deletions

View File

@ -8,7 +8,9 @@ export function addFeaturedLinkMetaDecorator(decorator) {
}
function extractLinkMeta(topic) {
const href = topic.featured_link, target = Discourse.SiteSettings.open_topic_featured_link_in_external_window ? '_blank' : '';
const href = topic.featured_link,
target = Discourse.User.currentProp('external_links_in_new_tab') ? '_blank' : '';
if (!href) { return; }
let domain = extractDomainFromUrl(href);

View File

@ -851,8 +851,6 @@ en:
min_private_message_post_length: "Minimum allowed post length in characters for messages"
max_post_length: "Maximum allowed post length in characters"
topic_featured_link_enabled: "Enable posting a link with topics."
topic_featured_link_onebox: "Show an onebox in the post body if possible and prevent editing post content."
open_topic_featured_link_in_external_window: "Open topic featured link in a external window."
show_topic_featured_link_in_digest: "Show the topic featured link in the digest email."
min_topic_title_length: "Minimum allowed topic title length in characters"
max_topic_title_length: "Maximum allowed topic title length in characters"

View File

@ -436,9 +436,6 @@ posting:
topic_featured_link_enabled:
client: true
default: false
open_topic_featured_link_in_external_window:
client: true
default: true
body_min_entropy: 7
min_topic_title_length:
client: true