forked from AkkomaGang/akkoma-fe
Fix who to follow panel shuffling
This commit is contained in:
parent
9305dad005
commit
efa0c85ac0
1 changed files with 3 additions and 3 deletions
|
@ -1,12 +1,12 @@
|
||||||
import apiService from '../../services/api/api.service.js'
|
import apiService from '../../services/api/api.service.js'
|
||||||
import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
|
import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
|
||||||
import _ from 'lodash'
|
import { shuffle } from 'lodash'
|
||||||
|
|
||||||
function showWhoToFollow (panel, reply) {
|
function showWhoToFollow (panel, reply) {
|
||||||
_.shuffle(reply)
|
const shuffled = shuffle(reply)
|
||||||
|
|
||||||
panel.usersToFollow.forEach((toFollow, index) => {
|
panel.usersToFollow.forEach((toFollow, index) => {
|
||||||
let user = reply[index]
|
let user = shuffled[index]
|
||||||
let img = user.avatar || '/images/avi.png'
|
let img = user.avatar || '/images/avi.png'
|
||||||
let name = user.acct
|
let name = user.acct
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue