fix: allow empty for github feed (#4174)

This commit is contained in:
hoilc
2020-03-08 23:12:30 +08:00
committed by GitHub
parent 60091e696d
commit 7651dd0018
6 changed files with 6 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ module.exports = async (ctx) => {
const data = response.data.data.repository.stargazers.edges.reverse();
ctx.state.data = {
allowEmpty: true,
title: `${user}/${repo}s stargazers`,
link: host,
item: data.map((follower) => ({