diff --git a/app/Http/Controllers/InternalApiController.php b/app/Http/Controllers/InternalApiController.php
index 541988bf..d18eb11b 100644
--- a/app/Http/Controllers/InternalApiController.php
+++ b/app/Http/Controllers/InternalApiController.php
@@ -343,27 +343,6 @@ class InternalApiController extends Controller
return response()->json($res);
}
- public function remoteProfile(Request $request, $id)
- {
- $profile = Profile::whereNull('status')
- ->whereNotNull('domain')
- ->findOrFail($id);
-
- $settings = [
- 'crawlable' => false,
- 'following' => [
- 'count' => true,
- 'list' => false
- ],
- 'followers' => [
- 'count' => true,
- 'list' => false
- ]
- ];
-
- return view('profile.show', compact('profile', 'settings'));
- }
-
public function accountStatuses(Request $request, $id)
{
$this->validate($request, [
@@ -440,6 +419,15 @@ class InternalApiController extends Controller
return response()->json($res);
}
+ public function remoteProfile(Request $request, $id)
+ {
+ $profile = Profile::whereNull('status')
+ ->findOrFail($id);
+ $user = Auth::user();
+
+ return view('profile.remote', compact('profile', 'user'));
+ }
+
public function remoteStatus(Request $request, $profileId, $statusId)
{
$user = Profile::whereNull('status')
@@ -450,7 +438,7 @@ class InternalApiController extends Controller
->whereNull('reblog_of_id')
->whereVisibility('public')
->findOrFail($statusId);
- $template = $status->in_reply_to_id ? 'status.reply' : 'status.show';
+ $template = $status->in_reply_to_id ? 'status.reply' : 'status.remote';
return view($template, compact('user', 'status'));
}
}
diff --git a/resources/assets/js/components/RemotePost.vue b/resources/assets/js/components/RemotePost.vue
new file mode 100644
index 00000000..4e039afa
--- /dev/null
+++ b/resources/assets/js/components/RemotePost.vue
@@ -0,0 +1,1018 @@
+
+ You are blocking this account Click here to view this status {{status.place.name}}, {{status.place.country}} Error: Problem rendering preview. {{status.place.name}}, {{status.place.country}}
+ {{user.acct.split('@')[0]}}@{{user.acct.split('@')[1]}}
+
+ {{user.display_name}}
+
+ {{user.display_name}}
+
+ You are blocking this account Click here to view profile {{profile.display_name}} {{profile.acct}}
+
+ {{profile.statuses_count}}
+ Posts
+
+
+ {{profile.following_count}}
+ Following
+
+
+ {{profile.followers_count}}
+ Followers
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + {{truncate(reply.account.username,15)}} + + + +
+
+
++ + {{reply.favourites_count == 1 ? '1 like' : reply.favourites_count + ' likes'}} + Reply +
++ + {{s.account.username}} + + + + +
+
+
++ + {{s.favourites_count == 1 ? '1 like' : s.favourites_count + ' likes'}} +
+