Fix AP Announce detection (#2672)
This commit is contained in:
parent
424625846e
commit
ea4e2da58d
3 changed files with 3 additions and 4 deletions
|
@ -239,7 +239,7 @@ export default async (user: IUser, data: Option, silent = false) => new Promise<
|
|||
});
|
||||
|
||||
async function renderActivity(data: Option, note: INote) {
|
||||
const content = data.renote && data.text == null
|
||||
const content = data.renote && data.text == null && data.poll == null && (data.files == null || data.files.length == 0)
|
||||
? renderAnnounce(data.renote.uri ? data.renote.uri : `${config.url}/notes/${data.renote._id}`, note)
|
||||
: renderCreate(await renderNote(note, false), note);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue