logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/

avatar_list.js (527B)


  1. import UserAvatar from '../user_avatar/user_avatar.vue'
  2. import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
  3. const AvatarList = {
  4. props: ['users'],
  5. computed: {
  6. slicedUsers () {
  7. return this.users ? this.users.slice(0, 15) : []
  8. }
  9. },
  10. components: {
  11. UserAvatar
  12. },
  13. methods: {
  14. userProfileLink (user) {
  15. return generateProfileLink(user.id, user.screen_name, this.$store.state.instance.restrictedNicknames)
  16. }
  17. }
  18. }
  19. export default AvatarList