Browse Source

don't prompt to send webmentions to URLs in the post author

main
Aaron Parecki 5 years ago
parent
commit
44af09f389
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      controllers/Controller.php

+ 3
- 0
controllers/Controller.php View File

@ -307,6 +307,9 @@ class Controller {
$parsed = $xray->parse($sourceURL, $source['body']);
if($parsed && isset($parsed['data'])) {
// Remove the author object to avoid sending webmentions to your own home page
if(isset($parsed['data']['author']))
unset($parsed['data']['author']);
$links = Telegraph\FindLinks::all($parsed['data']);
} else {
$links = [];

Loading…
Cancel
Save