Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pleroma pleroma
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 578
    • Issues 578
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 93
    • Merge requests 93
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Pleroma
  • pleromapleroma
  • Merge requests
  • !3471

Open
Created Jun 17, 2021 by Alex Gleason@alexgleasonContributor
  • Report abuse
Report abuse

NSFW API Policy

  • Overview 8
  • Commits 7
  • Pipelines 2
  • Changes 4

Downstream MR: https://gitlab.com/soapbox-pub/soapbox/-/merge_requests/35/

This adds a new MRF Policy: NsfwApiPolicy. It relies on an external FOSS service that can be easily self-hosted. During MRF filtering, it submits the attachments to the API service which uses artificial intelligence to rate it on a scale of 0-1, with 1 being most certainly NSFW.

Once you have the score, you can configure a threshold (default 0.7) for which to take action. Then you can either reject, unlist, or mark sensitive any content above the threshold.

Under the hood this uses Yahoo's open_nsfw and it's pretty accurate.

If the API server fails or any reason, it will treat the attachment as SFW and pass it through. It only works on images.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: nsfw-api-mrf