Skip to content

Commit

Permalink
latest
Browse files Browse the repository at this point in the history
  • Loading branch information
nano2dev committed Mar 2, 2024
1 parent a10bac2 commit 444e0e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/components/status_action_bar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class StatusActionBar extends ImmutablePureComponent {
name = name.split('/')[1]
var account = known.data.find(a => a.name.toLowerCase() === name.toLowerCase())
if (account) return window.location.href = `nano:${account.address}`
return window.alert('This user has a Nano.to Name that is invalid or expired.')
return window.alert('This user has a Nano.to name that is invalid or expired.')
}).catch((e) => {
console.log(e)

Check warning on line 165 in app/javascript/mastodon/components/status_action_bar.jsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,13 @@ class ActionBar extends PureComponent {

if (nano_to_name) {
api().get('/api/v1/streaming/nano_known').then(known => {
console.log( "response.data", response.data )

Check warning on line 126 in app/javascript/mastodon/features/status/components/action_bar.jsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement
var name = nano_to_name.value.match(/href="([^"]*)"/)[1]
name = name.replace('https://', '').replace('http://', '')
name = name.split('/')[1]
var account = known.data.find(a => a.name.toLowerCase() === name.toLowerCase())
if (account) return window.location.href = `nano:${account.address}`
return window.alert('This user has a Nano.to Name that is invalid or expired.')
return window.alert('This user has a Nano.to name that is invalid or expired.')
}).catch((e) => {
console.log(e)

Check warning on line 134 in app/javascript/mastodon/features/status/components/action_bar.jsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement
})
Expand Down

0 comments on commit 444e0e0

Please sign in to comment.