diff --git a/CHANGELOG.md b/CHANGELOG.md index a59adbf58..d2b41e84b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -143,6 +143,7 @@ - Updated 2FA setup, fix qrcode handler. ([cd2661fc](https://github.com/pixelfed/pixelfed/commit/cd2661fc)) - Updated avatars, use jpeg default. ([f6528c84](https://github.com/pixelfed/pixelfed/commit/f6528c84)) - Updated antispam bouncer, change recent from 1 week to 3 months. ([7d818197](https://github.com/pixelfed/pixelfed/commit/7d818197)) +- Updated Post components, fix remote post and profile urls. ([cfcf17f3](https://github.com/pixelfed/pixelfed/commit/cfcf17f3)) ## [v0.10.9 (2020-04-17)](https://github.com/pixelfed/pixelfed/compare/v0.10.8...v0.10.9) ### Added 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); diff --git a/public/js/rempos.js b/public/js/rempos.js index 8a7e6e17a..c6e89c51d 100644 Binary files a/public/js/rempos.js and b/public/js/rempos.js differ diff --git a/public/js/status.js b/public/js/status.js index b7967e6c4..e9c822684 100644 Binary files a/public/js/status.js and b/public/js/status.js differ diff --git a/public/mix-manifest.json b/public/mix-manifest.json index d9e176351..7d9c8891f 100644 Binary files a/public/mix-manifest.json and b/public/mix-manifest.json differ 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 @@ } -