mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 17:29:05 +01:00
Visibility support
This commit is contained in:
parent
c2cced0a45
commit
32516b1d8e
@ -28,6 +28,11 @@ export default async function createNote(resolver: Resolver, actor: IRemoteUser,
|
|||||||
|
|
||||||
log(`Creating the Note: ${note.id}`);
|
log(`Creating the Note: ${note.id}`);
|
||||||
|
|
||||||
|
//#region Visibility
|
||||||
|
let visibility = 'public';
|
||||||
|
if (note.cc.length == 0) visibility = 'private';
|
||||||
|
//#endergion
|
||||||
|
|
||||||
//#region 添付メディア
|
//#region 添付メディア
|
||||||
const media = [];
|
const media = [];
|
||||||
if ('attachment' in note && note.attachment != null) {
|
if ('attachment' in note && note.attachment != null) {
|
||||||
@ -74,6 +79,7 @@ export default async function createNote(resolver: Resolver, actor: IRemoteUser,
|
|||||||
text: window.document.body.textContent,
|
text: window.document.body.textContent,
|
||||||
viaMobile: false,
|
viaMobile: false,
|
||||||
geo: undefined,
|
geo: undefined,
|
||||||
|
visibility,
|
||||||
uri: note.id
|
uri: note.id
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user