forked from mirror/misskey
Fix Announce/Delete AP deliver
This commit is contained in:
parent
7cd7059fbc
commit
0292c5196d
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user