mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 05:52:49 +08:00
Remove the open_topic_featured_link_in_external_window setting. Use the user preference.
This commit is contained in:
parent
a4c4f13901
commit
a62b028e16
|
@ -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);
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user