add: allow published notes to be shown through iframe

This commit is contained in:
trisua 2025-07-03 23:58:42 -04:00
parent 2ec8d86edf
commit 1dc0611298
4 changed files with 13 additions and 7 deletions

View file

@ -166,7 +166,7 @@ macro_rules! user_banned {
let mut context = initial_context(&$data.0.0.0, lang, &$user).await;
context.insert("profile", &$other_user);
return Ok(Html(
return Err(Html(
$data.1.render("profile/banned.html", &context).unwrap(),
));
};
@ -233,7 +233,7 @@ macro_rules! check_user_blocked_or_private {
.is_ok(),
);
return Ok(Html(
return Err(Html(
$data.1.render("profile/blocked.html", &context).unwrap(),
));
}
@ -281,7 +281,7 @@ macro_rules! check_user_blocked_or_private {
.is_ok(),
);
return Ok(Html(
return Err(Html(
$data.1.render("profile/private.html", &context).unwrap(),
));
}
@ -293,7 +293,7 @@ macro_rules! check_user_blocked_or_private {
context.insert("follow_requested", &false);
context.insert("is_following", &false);
return Ok(Html(
return Err(Html(
$data.1.render("profile/private.html", &context).unwrap(),
));
}