add: post comments

add: user follow api, user block api
This commit is contained in:
trisua 2025-03-25 22:52:47 -04:00
parent 559ce19932
commit 8580e34be2
18 changed files with 296 additions and 49 deletions

View file

@ -70,6 +70,14 @@ pub fn routes() -> Router {
"/auth/profile/{id}/banner",
get(auth::images::banner_request),
)
.route(
"/auth/profile/{id}/follow",
post(auth::social::follow_request),
)
.route(
"/auth/profile/{id}/block",
post(auth::social::block_request),
)
}
#[derive(Deserialize)]
@ -108,6 +116,8 @@ pub struct UpdateJournalWriteAccess {
pub struct CreateJournalEntry {
pub content: String,
pub journal: usize,
#[serde(default)]
pub replying_to: Option<usize>,
}
#[derive(Deserialize)]