mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-21 19:53:50 +01:00
parent
b22c8144e9
commit
072b4d9946
@ -527,9 +527,12 @@ export default define(meta, paramDef, async (ps, user) => {
|
|||||||
if (ps.text !== note.text) {
|
if (ps.text !== note.text) {
|
||||||
update.text = ps.text;
|
update.text = ps.text;
|
||||||
}
|
}
|
||||||
if (ps.cw !== note.cw) {
|
if (ps.cw !== note.cw || (ps.cw && !note.cw)) {
|
||||||
update.cw = ps.cw;
|
update.cw = ps.cw;
|
||||||
}
|
}
|
||||||
|
else if (!ps.cw && note.cw) {
|
||||||
|
update.cw = null;
|
||||||
|
}
|
||||||
if (ps.visibility !== note.visibility) {
|
if (ps.visibility !== note.visibility) {
|
||||||
update.visibility = ps.visibility;
|
update.visibility = ps.visibility;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user