fix: make reposts of nsfw posts nsfw

chore: update permission management uis
This commit is contained in:
trisua 2025-04-13 00:54:00 -04:00
parent c49e4458e2
commit 7b4865333e
5 changed files with 11 additions and 3 deletions

View file

@ -652,6 +652,11 @@ impl DataManager {
if let Some(ref rt) = reposting {
data.context.reposts_enabled = false; // cannot repost reposts
// mirror nsfw status
if rt.context.is_nsfw {
data.context.is_nsfw = true;
}
// make sure we aren't trying to repost a repost
if if let Some(ref repost) = rt.context.repost {
repost.reposting.is_some()