Skip to content

Commit e6d9df9

Browse files
committed
dont exclude blocked users
1 parent cbd33c5 commit e6d9df9

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

frontend/src/components/app/recommendations/HistoryRecommendations.vue

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -162,28 +162,14 @@ export default {
162162
}
163163
return true;
164164
},
165-
filterOutBlockedUsers(recommendations) {
166-
let i = recommendations.length;
167-
const { blocks } = this.$store.getters.getLoggedInUser;
168-
let blockedIds = [];
169-
for (let j = 0; j < blocks.length; j += 1) {
170-
blockedIds.push(blocks[j].blocked_id);
171-
}
172-
while (i--) {
173-
if (blockedIds.indexOf(recommendations[i].id) !== -1) {
174-
recommendations.splice(i, 1);
175-
}
176-
}
177-
return recommendations;
178-
},
179165
saveSingleChoice(...args) {
180166
const [key, value] = args;
181167
if (key === 'history') {
182168
this.$emit('update-history', value);
183169
}
184170
},
185171
setupRecommendations() {
186-
this.recommendations = this.filterOutBlockedUsers(this.recommendationsReceived);
172+
this.recommendations = this.recommendationsReceived;
187173
this.recommendationsBackup = this.recommendations;
188174
this.filters.age.min = this.recommendationsAnalysis.age.min;
189175
this.filters.age.max = this.recommendationsAnalysis.age.max;

0 commit comments

Comments
 (0)