Skip to content

Commit

Permalink
include stingified NIP-11 when available
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Jul 27, 2024
1 parent 63285f7 commit 9b17f63
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/nocapd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@nostrwatch/nocap": "0.5.3",
"@nostrwatch/nocap-every-adapter-default": "1.4.0",
"@nostrwatch/nwcache": "0.1.2",
"@nostrwatch/publisher": "0.5.1",
"@nostrwatch/publisher": "0.5.2",
"@nostrwatch/seed": "0.0.2",
"@nostrwatch/utils": "0.1.3",
"bluebird": "3.7.2",
Expand Down
2 changes: 1 addition & 1 deletion internal/publisher/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nostrwatch/publisher",
"version": "0.5.1",
"version": "0.5.2",
"type": "module",
"description": "Library for publishing nostr.watch relay status and publisher registration events",
"main": "index.js",
Expand Down
8 changes: 8 additions & 0 deletions internal/publisher/src/kinds/Kind30166.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,16 @@ export class Kind30166 extends PublisherNocap {

generateEvent(data){
const tags = Kind30166.generateTags(data)
let content = {}
try {
content = JSON.stringify(data?.info?.data)
} catch (e) {
this.logger.err(`generateEvent(): Error: ${e}`)
this.logger.info(data)
}
return {
...this.tpl(),
content,
tags
}
}
Expand Down

0 comments on commit 9b17f63

Please sign in to comment.