Skip to content

Commit 7f0e9a6

Browse files
author
fiatjaf
committed
not implement success_secret for now.
1 parent 76ff8a5 commit 7f0e9a6

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

migrations/20201101170804_lnurlpay.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ exports.up = async db => {
99
t.string('image').nullable()
1010
t.string('other_metadata').nullable()
1111
t.string('success_text').nullable()
12-
t.string('success_secret').nullable()
1312
t.string('success_url').nullable()
1413
t.integer('comment_length').notNullable().defaultTo(0)
1514
t.string('webhook').nullable()

src/lnurl.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,7 @@ module.exports = (app, payListen, model, auth, ln) => async {
113113
, url: endpoint.success_url
114114
, description: endpoint.success_text || ''
115115
}
116-
} else if (lnurlpay.success_secret) {
117-
// not implemented yet
118-
} else if (endpoint.success_text) {
116+
} else if (lnurlpay.success_text) {
119117
successAction = {tag: 'message', message: endpoint.success_text}
120118
}
121119

0 commit comments

Comments
 (0)