Skip to content

Commit

Permalink
Send PDL
Browse files Browse the repository at this point in the history
  • Loading branch information
lesleyjanenorton committed Nov 22, 2019
1 parent 6e6f3b0 commit 12908b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controllers/hibp.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async function notify (req, res) {
}
}

if (breachAlert.IsSpamList || breachAlert.Domain === "" || breachAlert.IsFabricated || !breachAlert.IsVerified) {
if (breachAlert.IsSpamList || breachAlert.IsFabricated || !breachAlert.IsVerified) {
log.info(`${breachAlert.Name} is fabricated, a spam list, not associated with a website, or unverified. \n Breach Alert not sent.`);
return res.status(200).json(
{info: "Breach loaded into database. Subscribers not notified."}
Expand Down
2 changes: 1 addition & 1 deletion template-helpers/breach-detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function getVars(args) {
// How to dynamically detect Data Aggregator breaches?

function getBreachCategory(breach) {
if (["Exactis", "Apollo", "YouveBeenScraped", "ElasticsearchSalesLeads", "Estonia", "MasterDeeds"].includes(breach.Name)) {
if (["Exactis", "Apollo", "YouveBeenScraped", "ElasticsearchSalesLeads", "Estonia", "MasterDeeds", "PDL"].includes(breach.Name)) {
return "data-aggregator-breach";
}
if (!breach.IsVerified) {
Expand Down
2 changes: 1 addition & 1 deletion views/breach-detail.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="breach-detail-logo-wrapper">
<img class="breach-detail-logo breach-logo" alt="{{ breach.Name }} logo" src="/img/logos/{{ breach.LogoPath }}" />
</div>
<h2 class="headline breach-detail-headline">{{ breach.Title }}</h2>
<h2 class="headline breach-detail-headline txt-cntr mw-8">{{ breach.Title }}</h2>
{{#if breach.Domain}}
<a class="blue-link send-ga-ping" href="https://www.{{ breach.Domain }}" rel="nofollow noopener noreferrer" data-event-label="{{ breach.Domain }}" data-event-action="Engage" data-event-category="Breach Detail: Website URL Link" target="_blank">www.{{ breach.Domain }}</a>
{{/if}}
Expand Down

0 comments on commit 12908b1

Please sign in to comment.