Don’t send webmentions to onseself
This commit is contained in:
parent
87b01366c6
commit
44060da577
1 changed files with 5 additions and 0 deletions
|
@ -61,6 +61,11 @@ class SendWebMentions extends Job implements ShouldQueue
|
||||||
*/
|
*/
|
||||||
private function discoverWebmentionEndpoint($url)
|
private function discoverWebmentionEndpoint($url)
|
||||||
{
|
{
|
||||||
|
//let’s not send webmentions to myself
|
||||||
|
if (parse_url($url, PHP_URL_HOST) == env('LONG_URL', 'localhost')) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$endpoint = null;
|
$endpoint = null;
|
||||||
|
|
||||||
$response = $this->guzzle->get($url);
|
$response = $this->guzzle->get($url);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue