commit ac37a5d6bc0f0befd7bfaed08074b0f38b7a7501 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 29 20:52:49 2016 +0000 Update changelog commit d8fae341224f6dee1c1e32c3895dd8a038ff511d Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 29 20:10:12 2016 +0000 output of gulp commit 7c25002ffdf77134d6b5ffa04ee7c945024f0666 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 29 20:09:44 2016 +0000 slightly better layout of replies commit 8c9fda30af582ef1de87962f1293545e065ecfac Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 29 19:58:52 2016 +0000 Close the anchor tags commit 9c75d3c97fc1ef5a4706f2433c9c41b74b9bb9bd Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Tue Nov 29 19:58:04 2016 +0000 Add test reply to style
23 lines
1 KiB
PHP
23 lines
1 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class WebMentionsTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
$webmention = App\WebMention::create([
|
|
'source' => 'https://aaornpk.local/reply/1',
|
|
'target' => 'https://jonnybarnes.localhost/notes/D',
|
|
'commentable_id' => '13',
|
|
'commentable_type' => 'App\Note',
|
|
'type' => 'in-reply-to',
|
|
'mf2' => '{"rels": [], "items": [{"type": ["h-entry"], "properties": {"url": ["https://aaronpk.localhost/reply/1"], "name": ["Hi too"], "author": [{"type": ["h-card"], "value": "Aaron Parecki", "properties": {"url": ["https://aaronpk.localhost"], "name": ["Aaron Parecki"], "photo": ["https://aaronparecki.com/images/profile.jpg"]}}], "content": [{"html": "Hi too", "value": "Hi too"}], "published": ["' . date(DATE_W3C) . '"], "in-reply-to": ["https://aaronpk.loclahost/reply/1", "https://jonnybarnes.uk/notes/D"]}}]}'
|
|
]);
|
|
}
|
|
}
|