Skip to content

Commit

Permalink
fix(MessageRequest): use display_name for recipient validation (#3172)
Browse files Browse the repository at this point in the history
  • Loading branch information
wescopeland authored Feb 5, 2025
1 parent d6dd50c commit 052faa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Community/Requests/MessageRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function rules(): array
'max:60000',
new ContainsRegularCharacter(),
],
'recipient' => 'required_without:thread_id|exists:UserAccounts,User',
'recipient' => 'required_without:thread_id|exists:UserAccounts,display_name',
'thread_id' => 'nullable|integer',
'title' => 'required_without:thread_id|string|max:255',
];
Expand Down

0 comments on commit 052faa5

Please sign in to comment.