Fix Announce/Delete AP deliver

This commit is contained in:
mei23 2021-05-17 05:26:11 +09:00
parent 7cd7059fbc
commit 0292c5196d
No known key found for this signature in database
GPG key ID: DD8628500D3E4B23
2 changed files with 3 additions and 3 deletions

View file

@ -13,8 +13,8 @@ export default (object: any, note: Note) => {
} else if (note.visibility === 'home') {
to = [`${attributedTo}/followers`];
cc = ['https://www.w3.org/ns/activitystreams#Public'];
} else {
return null;
} else if (note.visibility === 'followers') {
to = [`${attributedTo}/followers`];
}
return {

View file

@ -35,7 +35,7 @@ export default async function(user: User, note: Note, quiet = false) {
});
//#region ローカルの投稿なら削除アクティビティを配送
if (Users.isLocalUser(user)) {
if (Users.isLocalUser(user) && !note.localOnly) {
let renote: Note | undefined;
// if deletd note is renote