Merge pull request #585 from lindskog/iss399

Add social filter to threads
This commit is contained in:
Christian Bundy 2021-01-27 07:49:11 -08:00 committed by GitHub
commit 3530560f25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1286,10 +1286,12 @@ module.exports = ({ cooler, isPublic }) => {
],
})
);
const basicSocialFilter = await socialFilter();
const messages = await new Promise((resolve, reject) => {
pull(
source,
basicSocialFilter,
pull.filter((message) => isNotPrivate(message) && hasNoRoot(message)),
pull.take(maxMessages),
pullParallelMap(async (message, cb) => {