Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up what's hot #1002

Merged
merged 4 commits into from
May 8, 2023
Merged

Clean up what's hot #1002

merged 4 commits into from
May 8, 2023

Conversation

dholms
Copy link
Collaborator

@dholms dholms commented May 8, 2023

Generally trying to reduce nsfw & raunchy material in what's hot, we apply 3 fixes:

  • no longer serve replies
  • ensure we filter quote posts that don't pass our filters
  • label underwear photos & strip underwear & nudity from what's hot

I also updated our labeling service to accurately return !no-promote labels

Comment on lines 73 to 80
const noRecordEmbeds = feed.map((post) => {
delete post.post.record['embed']
if (post.reply) {
delete post.reply.parent.record['embed']
delete post.reply.root.record['embed']
}
return post
})
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Records that contain image or external embeds will still show-up here— is this logic just not needed at all anymore? I recall it goes back to some issues with lexicon validation and the client.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh shit that's right... okay this does need to be back in my bad

@@ -38,6 +38,7 @@ export default async (sc: SeedClient) => {
[img1, img2], // Contains both images and a quote
sc.posts[bob][0].ref,
)
await sc.post(carol, posts.carol[0])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see posts.carol[0] used above—is this intended to be the newly-added post posts.carol[1]?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

goddammit yes 😅

@bnewbold
Copy link
Collaborator

bnewbold commented May 8, 2023

If it was up to me:

  • no replies I think will be the biggest impact, 👍
  • quote-post I feel like a more subtle thing, and a fair amount of positive commentary via quote post in What's Hot, but not against this change
  • I really don't like doing expanding !no-promote because it is currently not transparent (we remove that label from hydration, b/c app was showing as a warning previously)

I haven't checked, but to date we have only had !no-promote on accounts, not posts, so should verify it works as expected when applied to posts. Eg, should not show pink warning, and should be removed from "What's Hot".

I know that "ignore unknown labels" is working it's way through the app pipeline, but I don't know how broadly it is deployed. If it was, we could rip out the "don't hydrate" logic.

I think expanding sexual would be better. I had been meaning to do that in a more nuanced way, but could make a more aggressive move first and then back it off a bit after. Also seems like we could do this as a second thing, eg, 24hr later, after seeing what impact the replies thing has on it's own.

@dholms dholms force-pushed the clean-up-whats-hot branch from 3e74871 to ee929ac Compare May 8, 2023 22:18
@dholms dholms merged commit c8e6adb into main May 8, 2023
@dholms dholms deleted the clean-up-whats-hot branch May 8, 2023 23:26
dholms added a commit that referenced this pull request May 8, 2023
* changes to clean up whats hot

* fix test

* add quote posts back in & use underwear label instead of no-promote

* tidy
mloar pushed a commit to mloar/atproto that referenced this pull request Sep 26, 2023
* changes to clean up whats hot

* fix test

* add quote posts back in & use underwear label instead of no-promote

* tidy
mloar pushed a commit to mloar/atproto that referenced this pull request Nov 15, 2023
* changes to clean up whats hot

* fix test

* add quote posts back in & use underwear label instead of no-promote

* tidy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants