diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-01-12 23:56:43 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-01-12 23:56:43 -0600 |
commit | 51bab85b07b1433e832152f6498f203ec4b4434d (patch) | |
tree | 3c3e3a5cf92e03956195ef7a4e11f25e10f7b3ad /streaming | |
parent | 651c569c3fe7bd3ab12578396ec5934285f02188 (diff) |
add privacy option to limit lifespan of public access to post & object urls beyond local followers, default to 90 days
Diffstat (limited to 'streaming')
-rw-r--r-- | streaming/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/streaming/index.js b/streaming/index.js index 015546658..cedf3bd2e 100644 --- a/streaming/index.js +++ b/streaming/index.js @@ -403,15 +403,15 @@ const startWorker = (workerId) => { return; } - if (req.hideBoosts && (unpackedPayload.in_reply_to !== undefined || unpackedPayload.in_reply_to !== null)) { + if (req.hideBoosts && unpackedPayload.in_reply_to) { return; } - if (req.mediaOnly && (!unpackedPayload.media_attachments || unpackedPayload.media_attachments.length === 0)) { + if (req.mediaOnly && !unpackedPayload.media_attachments) { return; } - if (req.filterUndescribed && unpackedPayload.media_attachments && unpackedPayload.media_attachments.every(m => !m.description || m.description.length === 0)) { + if (req.filterUndescribed && Array.isArray(unpackedPayload.media_attachments) && unpackedPayload.media_attachments.every(m => !m.description)) { return; } |