mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-08 05:59:00 +08:00
fix: hackerone hacktivity fix username empty (#4955)
This commit is contained in:
@@ -29,7 +29,7 @@ module.exports = async (ctx) => {
|
|||||||
title: 'HackerOne Hacker Activity',
|
title: 'HackerOne Hacker Activity',
|
||||||
link: 'https://hackerone.com/hacktivity',
|
link: 'https://hackerone.com/hacktivity',
|
||||||
item: response.data.data.hacktivity_items.edges.map((item) => {
|
item: response.data.data.hacktivity_items.edges.map((item) => {
|
||||||
const author = item.node.reporter.username;
|
const author = item.node.reporter ? item.node.reporter.username : 'Someone';
|
||||||
const vendor = item.node.team.name;
|
const vendor = item.node.team.name;
|
||||||
const state = item.node.report.substate.replace(/^[a-z]/g, (L) => L.toUpperCase());
|
const state = item.node.report.substate.replace(/^[a-z]/g, (L) => L.toUpperCase());
|
||||||
const severity = item.node.severity_rating ? item.node.severity_rating.replace(/^[a-z]/g, (L) => L.toUpperCase()) : 'No Rating';
|
const severity = item.node.severity_rating ? item.node.severity_rating.replace(/^[a-z]/g, (L) => L.toUpperCase()) : 'No Rating';
|
||||||
|
|||||||
Reference in New Issue
Block a user