Skip to main content

restore_post_impl

Function restore_post_impl 

Source
pub(crate) async fn restore_post_impl(
    post_id: i32,
    author_id: Option<i32>,
) -> Result<CreatePostResponse, ServerFnError>
Expand description

已鉴权入口共用的恢复逻辑;Some(author_id) 将访问限制到指定作者。