mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-25 06:16:42 -06:00
replace var by const
This commit is contained in:
parent
96d961ee80
commit
2b7782ba03
1 changed files with 6 additions and 6 deletions
|
@ -18,12 +18,12 @@ export const meta = {
|
||||||
|
|
||||||
export default (params: any, me: ILocalUser) => new Promise(async (res, rej) => {
|
export default (params: any, me: ILocalUser) => new Promise(async (res, rej) => {
|
||||||
if (config.user_recommendation && config.user_recommendation.external) {
|
if (config.user_recommendation && config.user_recommendation.external) {
|
||||||
var userName = me.username
|
const userName = me.username
|
||||||
var hostName = config.hostname
|
const hostName = config.hostname
|
||||||
var limit = params.limit
|
const limit = params.limit
|
||||||
var offset = params.offset
|
const offset = params.offset
|
||||||
var timeout = config.user_recommendation.timeout
|
const timeout = config.user_recommendation.timeout
|
||||||
var engine = config.user_recommendation.engine
|
const engine = config.user_recommendation.engine
|
||||||
const url = engine
|
const url = engine
|
||||||
.replace('{{host}}', hostName)
|
.replace('{{host}}', hostName)
|
||||||
.replace('{{user}}', userName)
|
.replace('{{user}}', userName)
|
||||||
|
|
Loading…
Reference in a new issue