Daniel Supernault 2 gadi atpakaļ
vecāks
revīzija
fa43ec2333

+ 0 - 3
app/Transformer/ActivityPub/ProfileTransformer.php

@@ -23,14 +23,11 @@ class ProfileTransformer extends Fractal\TransformerAbstract
           'followers'                 => $profile->permalink('/followers'),
           'inbox'                     => $profile->permalink('/inbox'),
           'outbox'                    => $profile->permalink('/outbox'),
-          //'featured'                  => $profile->permalink('/collections/featured'),
           'preferredUsername'         => $profile->username,
           'name'                      => $profile->name,
           'summary'                   => $profile->bio,
           'url'                       => $profile->url(),
           'manuallyApprovesFollowers' => (bool) $profile->is_private,
-          // 'follower_count' => $profile->followers()->count(),
-          // 'following_count' => $profile->following()->count(),
           'publicKey' => [
             'id'           => $profile->permalink().'#main-key',
             'owner'        => $profile->permalink(),

+ 32 - 0
database/migrations/2022_10_31_043257_add_actors_last_synced_at_to_instances_table.php

@@ -0,0 +1,32 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+return new class extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('instances', function (Blueprint $table) {
+            $table->timestamp('actors_last_synced_at')->nullable();
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('instances', function (Blueprint $table) {
+            $table->dropColumn('actors_last_synced_at');
+        });
+    }
+};