Fixed 267U.pre2

This commit is contained in:
2026-07-26 18:25:37 +09:00
parent 50bfaeafdf
commit 317d00a284
1286 changed files with 80222 additions and 1 deletions
@@ -0,0 +1,16 @@
import { getApId } from "../type.js";
import create from "../../../services/note/reaction/create.js";
import { fetchNote, extractEmojis } from "../models/note.js";
export default (async (actor, activity)=>{
const targetUri = getApId(activity.object);
const note = await fetchNote(targetUri);
if (!note) return `skip: target note not found ${targetUri}`;
await extractEmojis(activity.tag || [], actor.host).catch(()=>null);
return await create(actor, note, activity._misskey_reaction || activity.content || activity.name).catch((e)=>{
if (e.id === "51c42bb4-931a-456b-bff7-e5a8a70dd298") {
return "skip: already reacted";
} else {
throw e;
}
}).then(()=>"ok");
});