Merge branch 'hide-followers-follows-count' into 'develop'

Added a setting to hide follow/follower count from the user profile

See merge request pleroma/pleroma-fe!951
This commit is contained in:
kaniini 2019-09-26 22:20:01 +00:00
commit 4369ce6f1b
6 changed files with 37 additions and 1 deletions

View file

@ -278,10 +278,12 @@ describe('API Entities normalizer', () => {
})
it('adds hide_follows and hide_followers user settings', () => {
const user = makeMockUserMasto({ pleroma: { hide_followers: true, hide_follows: false } })
const user = makeMockUserMasto({ pleroma: { hide_followers: true, hide_follows: false, hide_followers_count: false, hide_follows_count: true } })
expect(parseUser(user)).to.have.property('hide_followers', true)
expect(parseUser(user)).to.have.property('hide_follows', false)
expect(parseUser(user)).to.have.property('hide_followers_count', false)
expect(parseUser(user)).to.have.property('hide_follows_count', true)
})
})