Add a type to webmentions
This commit is contained in:
1 parent
38885beb74
commit
9d9e465a37
5 files changed
+57
-4
No files matched your search
+2
-1
@@ -11,6 +11,7 @@ use Symfony\Component\HttpClient\HttpClient;
|
||||
use League\Uri\Uri;
|
||||
use Lewisdale\Webmentions\Exceptions\SourceNotFoundException;
|
||||
use Lewisdale\Webmentions\Exceptions\TargetNotMentionedException;
|
||||
use Lewisdale\Webmentions\Models\MentionType;
|
||||
use Symfony\Component\DomCrawler\Crawler;
|
||||
use Symfony\Contracts\HttpClient\HttpClientInterface;
|
||||
|
||||
@@ -56,7 +57,7 @@ class Endpoint {
|
||||
$content = $this->parseContent($response->getContent(), $target);
|
||||
$author = $this->parseAuthor($response->getContent());
|
||||
|
||||
$webmention = new Webmention(null, $target, $source, $content, $author);
|
||||
$webmention = new Webmention(null, $target, $source, MentionType::from(""), $content, $author);
|
||||
$this->gateway->save($webmention);
|
||||
} else {
|
||||
throw new SourceNotFoundException();
|
||||
|
||||
Reference in new issue
Block a user