From f660c16ca6f699fccc9b00ad40182d91f6d60f83 Mon Sep 17 00:00:00 2001 From: Tobias Zulauf Date: Tue, 20 Sep 2022 18:07:18 +0200 Subject: [PATCH] [TwitterV2Bridge] noexternallink option to remove external stuff from the content_html output (#3041) * [TwitterV2Bridge] noexternallink option to remove external stuff from the content_html output * Update bridges/TwitterV2Bridge.php * Update bridges/TwitterV2Bridge.php --- bridges/TwitterV2Bridge.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bridges/TwitterV2Bridge.php b/bridges/TwitterV2Bridge.php index 3ba0e251..83bfae29 100644 --- a/bridges/TwitterV2Bridge.php +++ b/bridges/TwitterV2Bridge.php @@ -70,6 +70,11 @@ class TwitterV2Bridge extends BridgeAbstract 'type' => 'checkbox', 'title' => 'Activate to display original sized images (no thumbnails)' ], + 'noexternallink' => [ + 'name' => 'Hide external link from content html', + 'type' => 'checkbox', + 'title' => 'Activate to hide the links from the content html field' + ], 'idastitle' => [ 'name' => 'Use tweet id as title', 'type' => 'checkbox', @@ -556,7 +561,7 @@ QUOTE; } // Add External Link HTML, if relevant - if (isset($extURL)) { + if (isset($extURL) && !$this->getInput('noexternallink')) { Debug::log('Adding HTML for external link'); $ext_html = <<