public function shortenURL($url)
{
- if (!$this->config->linkShortener || !Url::isDistant($url)) {
+ if (!$this->config->linkShortener || $this->config->linkShortener === 'none' || !Url::isDistant($url)) {
return $url;
}
return LinkShortener::shorturl($url, $this->config->linkShortener);
public function getShortenedLinks()
{
- if (!$this->linkShortener) {
+ if (!$this->linkShortener || $this->linkShortener === 'none') {
return [];
}
$res = [];
var type = $(link).attr('fb-type');
var form = $("#linkeditor-form-template-" + type).clone(false);
-
-
$(form).attr('id', null);
$(form).data('link', link);
$(form).find('.init-tooltip').removeClass('init-tooltip');