Skip to content

Commit

Permalink
Final fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
strideynet committed Aug 15, 2023
1 parent 8cda557 commit 714265e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion feed/feed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func TestChronologicalGenerator(t *testing.T) {
Hashtags: []string{"art"},
HasMedia: true,
Raw: &bsky.FeedPost{},
SelfLabels: []string{"TODO-TEMPORARY"},
SelfLabels: []string{"sexual"},
},
} {
require.NoError(t, harness.Store.CreatePost(ctx, opts))
Expand Down
2 changes: 1 addition & 1 deletion store/gen/candidate_posts.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion store/queries/candidate_posts.sql
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ WHERE
-- Filter by NSFW status. If unspecified, do not filter.
AND (sqlc.narg(is_nsfw)::BOOLEAN IS NULL OR
((ARRAY ['nsfw', 'mursuit', 'murrsuit'] && cp.hashtags) OR
(ARRAY ['porn', 'nudity', 'suggestive'] && cp.self_labels)) = @is_nsfw)
(ARRAY ['porn', 'nudity', 'sexual'] && cp.self_labels)) = @is_nsfw)

-- Remove posts newer than the cursor timestamp
AND (cp.indexed_at < @cursor_timestamp)
Expand Down

0 comments on commit 714265e

Please sign in to comment.