Skip to content

Commit

Permalink
adjust to new API
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Kruse committed Apr 5, 2024
1 parent 2881416 commit 1231d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/note.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub struct NewNote {
pub author_id: Option<i32>,
#[validate(length(min = 5))]
pub title: String,
#[validate(custom = "validate_note_type")]
#[validate(custom(function = "validate_note_type"))]
pub note_type: String,
#[validate(url)]
pub in_reply_to: Option<String>,
Expand Down

0 comments on commit 1231d74

Please sign in to comment.