.await?;
}
- return Ok(HttpResponse::Ok().finish());
+ Ok(HttpResponse::Ok().finish())
}
/// Handle a follow request from a remote user, adding the user as follower and returning an
return Ok(PostOrComment::Comment(c));
}
- return Err(NotFound.into());
+ Err(NotFound.into())
}
async fn fetch_post_or_comment_by_id(
return Ok(PostOrComment::Comment(comment));
}
- return Err(NotFound.into());
+ Err(NotFound.into())
}
fn get_like_object_id<Activity>(like_or_dislike: &Activity) -> Result<Url, LemmyError>
return Ok(CommunityOrPrivateMessage::PrivateMessage(p));
}
- return Err(NotFound.into());
+ Err(NotFound.into())
}
Comment::delete(conn, comment.id)
})
.await??;
- return Err(anyhow!("Post is locked").into());
+ Err(anyhow!("Post is locked").into())
} else {
Ok(comment)
}