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') {
|
} 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 {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue