Skip to content

Commit

Permalink
change the feed title
Browse files Browse the repository at this point in the history
  • Loading branch information
KarasuShin committed Sep 10, 2024
1 parent 36c8993 commit b035c19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/routes/follow/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ofetch from '@/utils/ofetch';
import type { FollowResponse, Profile, Subscription } from './types';

export const route: Route = {
name: '订阅列表',
name: 'User subscriptions',
path: '/profile/:uid',
example: '/profile/41279032429549568',
radar: [
Expand All @@ -27,7 +27,7 @@ async function handler(ctx: Context): Promise<Data> {
const [profile, subscriptions] = await Promise.all([ofetch<FollowResponse<Profile>>(`${host}/profiles?id=${uid}`), ofetch<FollowResponse<Subscription[]>>(`${host}/subscriptions?userId=${uid}`)]);

return {
title: `${profile.data.name} - 订阅列表`,
title: `${profile.data.name} - User subscriptions`,
item: subscriptions.data.map((subscription) => ({
title: subscription.feeds.title,
description: subscription.feeds.description,
Expand Down

0 comments on commit b035c19

Please sign in to comment.