(bug): Video posts do not throw bad domain exception for spammy urls. Exception: Sorry, your post contains a reference to a domain name linked to spam. You can not use short urls...
Steps to reproduce
- Upload a video
- Place in a bit.ly url, or other short url
- Video will not post and not alert given. 500 internal error thrown.
Sentry Output
Sentry Issue: ENGINE-2A
Exception: Sorry, your post contains a reference to a domain name linked to spam. You can not use short urls (eg. bit.ly). Please remove it and try again
File "/Core/Security/Events.php", line 330, in Minds\Core\Security\Events::onCreateHook
throw new \Exception('Sorry, your post contains a reference to a domain name linked to spam. You can not use short urls (eg. bit.ly). Please remove it and try again');
File "[internal]", line 0, in call_user_func_array
File "/Core/Events/Dispatcher.php", line 131, in Minds\Core\Events\Dispatcher::trigger
if (call_user_func_array($callback, $args) === false) {
File "/lib/elgglib.php", line 621, in elgg_trigger_event
return \Minds\Core\Events\Dispatcher::trigger($event, "elgg/event/$object_type", $object, true);
File "/classes/ElggEntity.php", line 1067, in ElggEntity::save
elgg_trigger_event('update', $this->type, $this);
...
(9 additional frame(s) were not displayed)