rsshub
Version:
Make RSS Great Again!
36 lines (34 loc) • 1.23 kB
JavaScript
import "./esm-shims-CzJ_djXG.mjs";
import "./config-C37vj7VH.mjs";
import "./dist-BInvbO1W.mjs";
import "./logger-Czu8UMNd.mjs";
import "./ofetch-BIyrKU3Y.mjs";
import "./parse-date-BrP7mxXf.mjs";
import "./cache-Bo__VnGm.mjs";
import "./render-BQo6B4tL.mjs";
import "./timezone-D8cuwzTY.mjs";
import "./config-not-found-Dyp3RlZZ.mjs";
import { a as getUserInfo, c as generateDynamicFeeds, i as getUserDynamic, m as REQUIRE_CONFIG, s as checkConfig, u as INDEX_URL } from "./api-9uZb5yjV.mjs";
//#region lib/routes/sdo/ff14risingstones/user-dynamics.ts
const route = {
path: "/ff14risingstones/user-dynamics/:uid",
example: "/sdo/ff14risingstones/user-dynamics/10001226",
name: "用户动态",
categories: ["bbs"],
maintainers: ["KarasuShin"],
features: { requireConfig: REQUIRE_CONFIG },
handler
};
async function handler(ctx) {
checkConfig();
const uid = ctx.req.param("uid");
const [dynamics, userInfo] = await Promise.all([getUserDynamic(uid), getUserInfo(uid)]);
return {
title: `石之家 - ${userInfo.character_name}@${userInfo.group_name} 的动态`,
link: `${INDEX_URL}#/me/dynamics?uuid=${uid}`,
image: userInfo.avatar,
item: await generateDynamicFeeds(dynamics)
};
}
//#endregion
export { route };