mirror of
https://git.pleroma.social/sjw/pleroma-fe.git
synced 2024-12-23 18:45:45 +01:00
Merge branch 'fix-who-to-follow-panel-shuffling' into 'develop'
Fix who to follow panel shuffling See merge request pleroma/pleroma-fe!470
This commit is contained in:
commit
3492ab6697
@ -1,12 +1,12 @@
|
||||
import apiService from '../../services/api/api.service.js'
|
||||
import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
|
||||
import _ from 'lodash'
|
||||
import { shuffle } from 'lodash'
|
||||
|
||||
function showWhoToFollow (panel, reply) {
|
||||
_.shuffle(reply)
|
||||
const shuffled = shuffle(reply)
|
||||
|
||||
panel.usersToFollow.forEach((toFollow, index) => {
|
||||
let user = reply[index]
|
||||
let user = shuffled[index]
|
||||
let img = user.avatar || '/images/avi.png'
|
||||
let name = user.acct
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user