Skip to content
This repository was archived by the owner on Aug 10, 2024. It is now read-only.

Commit df4e3fd

Browse files
committed
Remove replies and reposts from users
1 parent 235b682 commit df4e3fd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cloudflare-worker/worker.js

+8
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,14 @@ async function getFeedSkeleton(request, env) {
221221
feedItem.post !== undefined &&
222222
feedItem.post.record !== undefined
223223
) {
224+
// TODO allow replies
225+
if (feedItem.reply !== undefined) {
226+
continue;
227+
}
228+
// TODO allow reposts
229+
if (feedItem.reason !== undefined) {
230+
continue;
231+
}
224232
let timestamp = feedItem.post.record.createdAt;
225233
let atURL = feedItem.post.uri;
226234
timestampURLs.push([timestamp, atURL]);

0 commit comments

Comments
 (0)