Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/Support/PostStatusRules.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
class PostStatusRules
{
private const EDIT_BLOCKED_MESSAGE_KEY = 'posts.cannot_edit_finalized';
private const EDIT_BLOCKED_MESSAGE_KEY = 'posts.flash.cannot_edit_finalized';

/**
* Statuses where the post can no longer be edited.
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/Mcp/PostPublishToolTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
$response = TryPostServer::actingAs($this->user)
->tool(UpdatePostTool::class, ['post_id' => $post->id, 'content' => 'x']);

$response->assertHasErrors([__('posts.cannot_edit_finalized')]);
$response->assertHasErrors([__('posts.flash.cannot_edit_finalized')]);
})->with([
PostStatus::Published,
PostStatus::PartiallyPublished,
Expand Down Expand Up @@ -280,7 +280,7 @@
$response = TryPostServer::actingAs($this->user)
->tool(PublishPostTool::class, ['post_id' => $post->id]);

$response->assertHasErrors([__('posts.cannot_edit_finalized')]);
$response->assertHasErrors([__('posts.flash.cannot_edit_finalized')]);
})->with([
PostStatus::Published,
PostStatus::PartiallyPublished,
Expand Down