rss: small fixes

This commit is contained in:
DIYgod 2018-10-19 01:18:50 +08:00
parent d92170bdd7
commit de48f8280d
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
2 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,7 @@ module.exports = async (ctx) => {
});
ctx.state.data = {
title: '豆瓣同城-热门活动',
title: '豆瓣同城-热门活动-locationId',
link: referer,
item: response.data.subject_collection_items.map(({ title, url, date, cover, subtype, info, price_range }) => {
const pubDate = new Date(date).toUTCString();

View File

@ -10,6 +10,7 @@ module.exports = async (ctx) => {
ctx.state.data = {
title: '知乎想法热榜',
link: 'https://www.zhihu.com/',
description: '整点更新',
item: data.map(({ target }) => {
const pubDate = new Date(target.created * 1000).toUTCString();