Merge remote-tracking branch 'upstream/develop' into shigusegubu
* upstream/develop: fix lint use prime number step for Who to follow panel fix Revert "Revert "Update messages.js"" Revert "Update messages.js" Update messages.js Update the Occitan language - Fixed Linting Remove outdated settings Simplified image sensitivity label i18n/messages.js: changed Folgende back to Follower updated german translation updated german translation cleaning up some translations that broke the building fix trailing comma Update and fix messages.js (pt, eo)
This commit is contained in:
commit
033b8fef4b
3 changed files with 101 additions and 73 deletions
|
|
@ -3,9 +3,10 @@ import apiService from '../../services/api/api.service.js'
|
|||
function showWhoToFollow (panel, reply) {
|
||||
var users = reply
|
||||
var cn
|
||||
var index = 0
|
||||
var random = Math.floor(Math.random() * 10)
|
||||
for (cn = random; cn < users.length; cn = cn + 10) {
|
||||
var index
|
||||
var step = 7
|
||||
cn = Math.floor(Math.random() * step)
|
||||
for (index = 0; index < 3; index++) {
|
||||
var user
|
||||
user = users[cn]
|
||||
var img
|
||||
|
|
@ -46,11 +47,8 @@ function showWhoToFollow (panel, reply) {
|
|||
}
|
||||
})
|
||||
}
|
||||
index = index + 1
|
||||
if (index > 2) {
|
||||
break
|
||||
}
|
||||
}
|
||||
cn = (cn + step) % users.length
|
||||
}
|
||||
|
||||
function getWhoToFollow (panel) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue