From 3244ca92ffe8b2925018662530cf5279c59fb1f1 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 17 Dec 2020 23:12:27 -0700 Subject: [PATCH 1/4] Update StatusController --- app/Http/Controllers/StatusController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/StatusController.php b/app/Http/Controllers/StatusController.php index 6f8eac91f..7b7ddfa4f 100644 --- a/app/Http/Controllers/StatusController.php +++ b/app/Http/Controllers/StatusController.php @@ -200,6 +200,7 @@ class StatusController extends Controller $u->save(); } + Cache::forget('_api:statuses:recent_9:' . $status->profile_id); if ($status->profile_id == $user->profile->id || $user->is_admin == true) { Cache::forget('profile:status_count:'.$status->profile_id); StatusDelete::dispatch($status); From cfcf17f30c0d27d47cd8983ef0bab2aa6e008dd4 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 17 Dec 2020 23:21:38 -0700 Subject: [PATCH 2/4] Update Post components, fix remote post and profile urls --- .../assets/js/components/PostComponent.vue | 1 - resources/assets/js/components/RemotePost.vue | 318 +----------------- 2 files changed, 15 insertions(+), 304 deletions(-) diff --git a/resources/assets/js/components/PostComponent.vue b/resources/assets/js/components/PostComponent.vue index cdea3e58a..d6b9b4648 100644 --- a/resources/assets/js/components/PostComponent.vue +++ b/resources/assets/js/components/PostComponent.vue @@ -1513,7 +1513,6 @@ export default { }, getStatusUrl(status) { - return status.url; if(status.local == true) { return status.url; diff --git a/resources/assets/js/components/RemotePost.vue b/resources/assets/js/components/RemotePost.vue index cdea3e58a..1296a7090 100644 --- a/resources/assets/js/components/RemotePost.vue +++ b/resources/assets/js/components/RemotePost.vue @@ -10,16 +10,16 @@
-
+
-
+
- {{ statusUsername }} + {{ statusUsername }} @@ -46,7 +46,7 @@
- +
@@ -54,7 +54,7 @@
- +
@@ -62,7 +62,7 @@
- +
@@ -74,11 +74,11 @@
-
+
- {{ statusUsername }} + {{ statusUsername }} @@ -108,7 +108,7 @@
- {{truncate(status.account.username,15)}} + {{truncate(status.account.username,15)}} This comment may contain sensitive material Show @@ -117,7 +117,7 @@
@@ -243,7 +243,7 @@
-

More posts from {{this.statusUsername}}

+

More posts from {{this.statusUsername}}

@@ -273,175 +273,6 @@
- -
-
-
-
-
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
-

Error: Problem rendering preview.

-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
- -
-
-
-
-

-

-

- by {{statusUsername}} - - - Follow - -

-
- avatar -
-
-
-

- {{status.content_text.length ? status.content_text : 'Untitled Post'}} -

-

- by {{statusUsername}} - -

-
- avatar -
-
-
-

- - {{status.place.name}}, {{status.place.country}} - - - {{timeAgo(status.created_at)}} ago - -

- -
-

- {{tag.name}} -

-
-
-
-
-

Comments

-
-
- -

- - {{replyText.length}}/{{config.uploader.max_caption_length}} - - -

- - -
- - -

-
-
-
-
- avatar -
-
- - {{reply.account.username}} - - - - - - - - - - - - -
-
- - - This comment may contain sensitive material - Show - - -
-
-

loading ...

-
-

- - {{timeAgo(reply.created_at)}} - -

-
-
-
-
-
-
-
-
- -
- -
-
- -
-
- -
-
-
- - -
-
- - -
-
- - -
-
-
- -

By using this embed, you agree to our Terms of Use

-
-
Unfollow
Follow
-
Embed
Copy Link
{{ showComments ? 'Disable' : 'Enable'}} Comments
Edit @@ -735,19 +516,6 @@ } -