Skip to content

Commit

Permalink
adding nostr stats to networks #2700
Browse files Browse the repository at this point in the history
  • Loading branch information
K committed Aug 30, 2024
1 parent 8089e10 commit c232d1e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ exports.getExternalSiteCount = function (site, callback) {
'facebook',
'twitter',
'github',
'nostr',
];

// Validate site
Expand Down Expand Up @@ -66,6 +67,9 @@ exports.getExternalSiteCount = function (site, callback) {
case 'github':
query['additionalProvidersData.github'] = { $exists: true };
break;
case 'nostr':
query.nostrNpub = { $exists: true, $ne: '' };
break;
}

User.countDocuments(query, function (err, count) {
Expand Down

0 comments on commit c232d1e

Please sign in to comment.