Don’t send webmentions to onseself

This commit is contained in:
Jonny Barnes 2016-06-21 16:11:08 +01:00
parent 87b01366c6
commit 44060da577

View file

@ -61,6 +61,11 @@ class SendWebMentions extends Job implements ShouldQueue
*/
private function discoverWebmentionEndpoint($url)
{
//lets not send webmentions to myself
if (parse_url($url, PHP_URL_HOST) == env('LONG_URL', 'localhost')) {
return false;
}
$endpoint = null;
$response = $this->guzzle->get($url);