v7.2@uwuzu1.5.4をリリース

This commit is contained in:
2025-08-02 19:39:50 +09:00
parent f6f7030d8c
commit 718e97ed45
14 changed files with 215 additions and 47 deletions
+6 -13
View File
@@ -1,5 +1,6 @@
import { ueuse } from "types/types.js";
import config from "../../config.js";
import { Reply } from "./main.js";
export default async function Follow(data: ueuse) {
const followReq = await fetch(`https://${config.uwuzu.host}/api/users/follow`, {
@@ -8,6 +9,7 @@ export default async function Follow(data: ueuse) {
token: config.uwuzu.apiToken,
userid: data.account.userid,
}),
cache: "no-store",
});
const followRes = await followReq.json();
@@ -15,18 +17,9 @@ export default async function Follow(data: ueuse) {
console.log("フォロー: ", followRes);
const noticeReq = await fetch(`https://${config.uwuzu.host}/api/ueuse/create`, {
method: "POST",
body: JSON.stringify({
token: config.uwuzu.apiToken,
text: `
${data.account.username}さんをフォローしました
`,
replyid: data.uniqid,
}),
});
const notice = await Reply(`
${data.account.username}さんをフォローしました
`, data.uniqid);
const noticeRes = await noticeReq.json();
console.log("フォロー通知: ", noticeRes);
console.log("フォロー通知: ", notice);
}