Jelajahi Sumber

Update AccountController

Daniel Supernault 3 tahun lalu
induk
melakukan
68300c426c
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      app/Http/Controllers/AccountController.php

+ 2 - 1
app/Http/Controllers/AccountController.php

@@ -364,7 +364,8 @@ class AccountController extends Controller
 			'accounts' => $followers->take(10)->map(function($a) {
 			'accounts' => $followers->take(10)->map(function($a) {
 				$actor = $a->actor;
 				$actor = $a->actor;
 				return [
 				return [
-					'id' => $actor->id,
+					'rid' => (string) $a->id,
+					'id' => (string) $actor->id,
 					'username' => $actor->username,
 					'username' => $actor->username,
 					'avatar' => $actor->avatarUrl(),
 					'avatar' => $actor->avatarUrl(),
 					'url' => $actor->url(),
 					'url' => $actor->url(),