mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
fullfill with logged username
This commit is contained in:
parent
0888c47bd7
commit
53e96834f8
@ -334,6 +334,15 @@ class App extends React.Component {
|
||||
return window.app.setLocation(config.app.mainPath ?? "/home")
|
||||
},
|
||||
goToAccount: (username) => {
|
||||
if (!username) {
|
||||
if (!app.userData) {
|
||||
console.error("Cannot go to account, no username provided and no user logged in")
|
||||
return false
|
||||
}
|
||||
|
||||
username = app.userData.username
|
||||
}
|
||||
|
||||
return window.app.setLocation(`/@${username}`)
|
||||
},
|
||||
goToPost: (id) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user