[backend] Don't federate edits of local-only notes (resolves #566)

This commit is contained in:
Laura Hausmann 2024-09-10 20:05:54 +02:00
parent 05c540f52c
commit e753462c01
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605

View File

@ -193,6 +193,7 @@ export default async function (
publishNoteUpdatesStream("updated", note);
(async () => {
if (note.localOnly) return;
const noteActivity = await renderNote(note, false);
noteActivity.updated = note.updatedAt.toISOString();
const updateActivity = renderUpdate(noteActivity, user);