forked from GNUsocial/gnu-social
[Posting] Respect process_links setting
This commit is contained in:
parent
8a01224feb
commit
469cd97b9b
@ -26,7 +26,6 @@ use App\Core\DB\DB;
|
||||
use App\Core\Event;
|
||||
use App\Core\Form;
|
||||
use App\Core\GSFile;
|
||||
use App\Util\Exception\ClientException;
|
||||
use function App\Core\I18n\_m;
|
||||
use App\Core\Modules\Component;
|
||||
use App\Entity\Attachment;
|
||||
@ -36,6 +35,7 @@ use App\Entity\Link;
|
||||
use App\Entity\Note;
|
||||
use App\Entity\NoteToLink;
|
||||
use App\Util\Common;
|
||||
use App\Util\Exception\ClientException;
|
||||
use App\Util\Exception\InvalidFormException;
|
||||
use App\Util\Exception\RedirectException;
|
||||
use InvalidArgumentException;
|
||||
@ -143,6 +143,7 @@ END;
|
||||
DB::flush();
|
||||
}
|
||||
|
||||
if (Common::config('attachments', 'process_links')) {
|
||||
$matched_urls = [];
|
||||
$processed_urls = false;
|
||||
preg_match_all(self::URL_REGEX, $content, $matched_urls, PREG_SET_ORDER);
|
||||
@ -159,6 +160,7 @@ END;
|
||||
DB::flush();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a unique representation of a file on disk
|
||||
|
Loading…
Reference in New Issue
Block a user