Webmentions were being saved with wrong model relationship
Fix the process webmention job to use the correct model relationship, add an artisan command to update existing webmentions in the database to use the correct model relationship.
This commit is contained in:
parent
8b276938e9
commit
12d3da5fdb
2 changed files with 37 additions and 1 deletions
|
@ -92,7 +92,7 @@ class ProcessWebMention implements ShouldQueue
|
|||
$webmention->source = $this->source;
|
||||
$webmention->target = $this->note->longurl;
|
||||
$webmention->commentable_id = $this->note->id;
|
||||
$webmention->commentable_type = 'App\Model\Note';
|
||||
$webmention->commentable_type = Note::class;
|
||||
$webmention->type = $type;
|
||||
$webmention->mf2 = json_encode($microformats);
|
||||
$webmention->save();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue