[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
This commit is contained in:
Tobias Zulauf 2022-09-20 18:07:18 +02:00 committed by GitHub
parent a12152e8a5
commit f660c16ca6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -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 = <<<EXTERNAL
<div style="display: table; border-style: solid; border-width: 1px; border-radius: 5px; padding: 5px;">