Setup support for syndicating to Bluesky
This commit is contained in:
parent
5d6d611707
commit
cbbe87e23c
9 changed files with 204 additions and 9 deletions
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('notes', function (Blueprint $table) {
|
||||
$table->string('bluesky_url')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('notes', function (Blueprint $table) {
|
||||
$table->dropColumn('bluesky_url');
|
||||
});
|
||||
}
|
||||
};
|
|
@ -138,6 +138,7 @@ class NotesTableSeeder extends Seeder
|
|||
$noteSyndicated->swarm_url = 'https://www.swarmapp.com/checking/123456789';
|
||||
$noteSyndicated->instagram_url = 'https://www.instagram.com/p/aWsEd123Jh';
|
||||
$noteSyndicated->mastodon_url = 'https://mastodon.social/@jonnybarnes/123456789';
|
||||
$noteSyndicated->bluesky_url = 'https://bsky.app/profile/jonnybarnes.uk/post/123456789';
|
||||
$noteSyndicated->save();
|
||||
DB::table('notes')
|
||||
->where('id', $noteSyndicated->id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue