Features

NSFW

Automatic NSFW flagging, the threshold, your own answers, and hiding flagged media behind a blurred stand-in.

Hubstruct can flag media that isn't safe for work, and hide what's flagged until you choose to look. It's all optional, and set in Settings → NSFW.

How media is flagged

The nsfw step asks the classifier one question about each image: is this NSFW? It stores only the score, the classifier's confidence from 0 to 100%. Whether a media counts as NSFW is then worked out each time, from:

  1. Your answer, if you've given one on its page: NSFW or Safe always wins.
  2. Otherwise, its score against the threshold: at or above it, it's NSFW.
  3. A media not yet checked has no flag.

Because the flag is worked out rather than stored, moving the threshold applies straight away, to every media, without running anything again.

GIFs and videos are judged on several frames together, like the tagging step.

The settings

Settings → NSFW has three settings, which apply to every library:

SettingDefaultDoes
Check for NSFW contentOnRuns the NSFW step on every image, and shows the result on media pages. When off, the step stops and its labels, controls and dashboard rows are hidden. Scores already saved are kept.
Hide NSFW mediaOffShows media flagged NSFW as a blurred stand-in in every list, the media page and album mosaics, until you reveal it.
Counts as NSFW from50%The score an image must reach to be flagged, from 5% to 95% in steps of 5.

Hiding

With Hide NSFW media on, flagged media is drawn as its ThumbHash: the same blurry placeholder shown while a thumbnail loads, a few dozen bytes encoding the picture's rough shapes and colors. It's drawn on the page from those bytes, so the hidden picture itself isn't loaded until you reveal it. Each hidden media has a Show button that reveals just that media until you reload the page.

While NSFW checking is on, the same switch sits in the top bar, so you can turn hiding on and off from anywhere.

Hidden media still appears in lists, searches and counts; only its picture is hidden. Album, tag and person mosaics draw hidden media as their placeholders too, and remake themselves when that changes.

Your answer

On a media's page, the NSFW card shows its score and whether it counts as NSFW. Mark it NSFW or Safe to override the classifier either way; clear your answer to go back to the score. Select several media and use NSFW or Not NSFW in the selection bar to answer for all of them.

In lists

When NSFW checking is on:

  • Lists can be filtered to NSFW only or safe only.
  • Lists can sort by NSFW score.
  • The table has an NSFW column.
  • Flagged media shows a small NSFW chip.