Skip to content

Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.

revert(posts): drop redundant router.visit in Edit.vue Echo handler

Paulo Castellanocad89a0a9758
diff --git a/resources/js/pages/posts/Edit.vue b/resources/js/pages/posts/Edit.vue
index 1582bdda4..9f20cb3a2 100644
--- a/resources/js/pages/posts/Edit.vue
+++ b/resources/js/pages/posts/Edit.vue
@@ -20,7 +20,7 @@ import { ContentType } from '@/enums/content-type';
import { Platform } from '@/enums/platform';
import { PostStatus } from '@/types/post';
import AppLayout from '@/layouts/AppLayout.vue';
-import { destroy as destroyPost, show as showPost, update as updatePost } from '@/routes/app/posts';
+import { destroy as destroyPost, update as updatePost } from '@/routes/app/posts';
import type { PinterestBoard } from '@/types';
interface MediaItem {
@@ -515,14 +515,7 @@ const unschedulePost = () => {
};
usePostEcho(post.value.id, '.post.platform.status.updated', () => {
- router.reload({
- only: ['post'],
- onSuccess: () => {
- if (READONLY_STATUSES.includes(post.value.status)) {
- router.visit(showPost.url(post.value.id));
- }
- },
- });
+ router.reload({ only: ['post'] });
});