1
0
forked from mirror/misskey

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') { } else if (note.visibility === 'home') {
to = [`${attributedTo}/followers`]; to = [`${attributedTo}/followers`];
cc = ['https://www.w3.org/ns/activitystreams#Public']; cc = ['https://www.w3.org/ns/activitystreams#Public'];
} else { } else if (note.visibility === 'followers') {
return null; to = [`${attributedTo}/followers`];
} }
return { return {

View File

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