mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-07 13:39:35 +08:00
fix: hackerone hacktivity replace null severity (#3946)
This commit is contained in:
@@ -32,7 +32,7 @@ module.exports = async (ctx) => {
|
||||
const author = item.node.reporter.username;
|
||||
const vendor = item.node.team.name;
|
||||
const state = item.node.report.substate.replace(/^[a-z]/g, (L) => L.toUpperCase());
|
||||
const severity = item.node.severity_rating.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 awarded = item.node.total_awarded_amount ? item.node.total_awarded_amount : 0;
|
||||
return {
|
||||
title: item.node.report.title,
|
||||
|
||||
Reference in New Issue
Block a user