- .then(itHasFriends => {
- if (itHasFriends === true) {
- console.log('Cannot update host because you have friends!')
+ .then(serverAccount => {
+ return ActorFollowModel.listAcceptedFollowingUrlsForApi([ serverAccount.id ], undefined)
+ })
+ .then(res => {
+ return res.total > 0
+ })
+ .then(hasFollowing => {
+ if (hasFollowing === true) {
+ console.log('Cannot update host because you follow other servers!')