From 803bbac0ea21da98bccc2eccad2ebdfe8984f162 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 23 Jan 2022 00:04:34 -0700 Subject: [PATCH] Update compiled assets --- app/Http/Controllers/Api/ApiV1Controller.php | 5 ++--- public/js/spa.js | Bin 1740410 -> 1741233 bytes public/mix-manifest.json | Bin 1983 -> 1983 bytes 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Api/ApiV1Controller.php b/app/Http/Controllers/Api/ApiV1Controller.php index b99e75247..bd8ca8c45 100644 --- a/app/Http/Controllers/Api/ApiV1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Controller.php @@ -685,7 +685,6 @@ class ApiV1Controller extends Controller ->whereNull('status') ->findOrFail($id); - RelationshipService::refresh($user->profile_id, $target->id); $private = (bool) $target->is_private; $remote = (bool) $target->domain; @@ -718,6 +717,7 @@ class ApiV1Controller extends Controller (new FollowerController())->sendUndoFollow($user->profile, $target); } + RelationshipService::refresh($user->profile_id, $target->id); Cache::forget('profile:following:'.$target->id); Cache::forget('profile:followers:'.$target->id); Cache::forget('profile:following:'.$user->profile_id); @@ -726,8 +726,7 @@ class ApiV1Controller extends Controller Cache::forget('user:account:id:'.$target->user_id); Cache::forget('user:account:id:'.$user->id); - $resource = new Fractal\Resource\Item($target, new RelationshipTransformer()); - $res = $this->fractal->createData($resource)->toArray(); + $res = RelationshipService::get($user->profile_id, $target->id); return response()->json($res); } diff --git a/public/js/spa.js b/public/js/spa.js index df034dbce1c1b0a53845727d0fe64f61b1ca6858..2eeaa226330647af8f7ecd214a4a7617130ee975 100644 GIT binary patch delta 1158 zcmbW0%TE(g6voreOdmWtGeAp0U365^;yAQ`N`??wVgezE8Wbw_aiIhBk(ntNX#>WP z5fT%Vk{lKWLz<|#kYY?`L0D8b{0BxCtc(j?XjrIm0p21e6j=}!zs%(3yWctYJbphJ zSn4mDW5HN4C74pZd%dh=n;0AK&E(UyT6V2m&#u{)WcdE5!Uj=+?t{kz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a9d72be2441c77027708a1 100644 GIT binary patch delta 33 ncmdnbzn_1@Y&H>tG)n^mqqM}dq(oC7m1t;@Vz_xdn*bvKyH^TX delta 33 ocmdnbzn_1@Y&H=Sb4v?j0}JCc%TyC{V^gzKV+)JT>)8Yt0jd89IsgCw