mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
use truncate instead of substring
This commit is contained in:
parent
d986e086c4
commit
55c1ac276d
@ -6,7 +6,7 @@ export default {
|
||||
return this.$t('profile.userAnonym')
|
||||
}
|
||||
// Return full Username or truncated Username
|
||||
return maxLength ? userName.substring(0, maxLength) : userName
|
||||
return maxLength ? this.$filters.truncate(userName, maxLength) : userName
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user