Skip to content

Commit

Permalink
latest
Browse files Browse the repository at this point in the history
  • Loading branch information
nano2dev committed Mar 3, 2024
1 parent 34937d6 commit 8662fd5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/javascript/mastodon/components/status_action_bar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,13 @@ class StatusActionBar extends ImmutablePureComponent {

var raw_address = response.data.fields.find(a => a.value && a.value.includes('nano_'))

Check failure on line 150 in app/javascript/mastodon/components/status_action_bar.jsx

View workflow job for this annotation

GitHub Actions / lint

Missing semicolon
var nano_to_name = response.data.fields.find(a => a.value && (a.value.includes('ӿ.to/') || a.value.includes('nano.to/') || a.value.includes('xno.to/')))

Check failure on line 151 in app/javascript/mastodon/components/status_action_bar.jsx

View workflow job for this annotation

GitHub Actions / lint

Missing semicolon
var display_name = response.data.display_name.split(' ')[0].replace(/[^a-zA-Z]+/g, '')

Check failure on line 152 in app/javascript/mastodon/components/status_action_bar.jsx

View workflow job for this annotation

GitHub Actions / lint

Missing semicolon

if (raw_address) {
window.NanoPay.open({
title: 'Tip',
address: raw_address.value,
strings: { account: `@${response.data.acct}` },
strings: { account: `@${display_name}` },
// cancel: () => window.location.reload()
})

Check failure on line 160 in app/javascript/mastodon/components/status_action_bar.jsx

View workflow job for this annotation

GitHub Actions / lint

Missing semicolon
return

Check failure on line 161 in app/javascript/mastodon/components/status_action_bar.jsx

View workflow job for this annotation

GitHub Actions / lint

Arrow function expected a return value

Check failure on line 161 in app/javascript/mastodon/components/status_action_bar.jsx

View workflow job for this annotation

GitHub Actions / lint

Missing semicolon
Expand All @@ -163,7 +164,7 @@ class StatusActionBar extends ImmutablePureComponent {

if (nano_to_name) {
api().get('/api/v1/streaming/nano_known').then(known => {

Check failure on line 166 in app/javascript/mastodon/components/status_action_bar.jsx

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 8 spaces but found 10
console.log( "response.data", response.data )
// console.log( "response.data", response.data )

Check failure on line 167 in app/javascript/mastodon/components/status_action_bar.jsx

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 10 spaces but found 12
var name = nano_to_name.value.match(/href="([^"]*)"/)[1]
name = name.replace('https://', '').replace('http://', '')
name = name.split('/')[1]
Expand All @@ -172,7 +173,7 @@ class StatusActionBar extends ImmutablePureComponent {
window.NanoPay.open({
title: 'Tip',
address: account.address,
strings: { account: `@${response.data.acct}` },
strings: { account: `@${display_name}` },
// cancel: () => window.location.reload()
})
return
Expand Down

0 comments on commit 8662fd5

Please sign in to comment.