Skip to content

Commit

Permalink
Merge branch 'main' into feat/wasm-api
Browse files Browse the repository at this point in the history
  • Loading branch information
SHAcollision committed Jan 23, 2025
2 parents db42d41 + f1c34f7 commit 3fb9143
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/models/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ pub struct PubkyAppUserLink {
pub url: String,
}

#[cfg_attr(target_arch = "wasm32", wasm_bindgen)]
impl PubkyAppUser {
/// Creates a new `PubkyAppUser` instance and sanitizes it.
#[cfg_attr(target_arch = "wasm32", wasm_bindgen(constructor))]
pub fn new(
name: String,
bio: Option<String>,
Expand Down

0 comments on commit 3fb9143

Please sign in to comment.