Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

NSFW filter #901

Merged
merged 13 commits into from
May 4, 2020
Merged

NSFW filter #901

merged 13 commits into from
May 4, 2020

Conversation

brenoferreira
Copy link
Contributor

@brenoferreira brenoferreira commented Apr 28, 2020

Fixes #435 by @kgodey

mature

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.


Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

@aldenstpage
Copy link
Contributor

(by sheer coincidence, I used that first "cat" result to test the mature filter in the dev environment, so that's why it only appears in the mature results)

@fcoveram
Copy link

Two comments:

  • Why there is a Settings category for only one filter? The categories should include more than one element. Otherwise, it could be shown as the Search by Creator filter.
  • The section where filters appear neither have the label Filter by nor the gray background

@brenoferreira
Copy link
Contributor Author

@panchovm the Settings thing is how it's described in the issue (See "Filter" in #848). The Filter By is a bug. Thanks for spotting it. I'll fix it

@brenoferreira
Copy link
Contributor Author

mature
fixed

fcoveram
fcoveram previously approved these changes Apr 30, 2020
akmadian
akmadian approved these changes Apr 30, 2020
Copy link
Contributor

@akmadian akmadian left a comment

Choose a reason for hiding this comment

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

nsfw
This image (top right, the red square is my own) comes up regardless of whether or not "Enable Mature Content" is selected, but I'm not sure if this is frontend or api side. I reported the image :)

Another thing is that the "Mature" text and the X in the filter block button don't look like they're aligned vertically. I think they are literally speaking, but they look slightly off in my opinion.

Side Note: In package.json, I noticed that the author is "sebworks", and the description is "Common Creative search", which doesn't look right to me.

Little bits here and there that I think could/should be addressed, but it looks good!

@brenoferreira
Copy link
Contributor Author

brenoferreira commented Apr 30, 2020

@akmadian the results come from the API. I think the filter will work better as more images are classified as nsfw. @aldenstpage can clear it up better for you

As for the alignment, can you open an issue so that this can be done separately?

@brenoferreira brenoferreira merged commit cb2cce6 into develop May 4, 2020
@brenoferreira brenoferreira deleted the nsfw_filter branch May 4, 2020 13:06
@aldenstpage
Copy link
Contributor

@akmadian In this initial pass, we don't have any way to automatically identify an image as NSFW, we just created the means to flag an image manually and exclude them from the search results. In the future we'll use keywords to flag potential NSFW images. This ticket has some details: cc-archive/cccatalog-api#482

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Build filter for NSFW/mature content
4 participants