Feature to only purge "orphaned" media from Pict-rs

Open
#7 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
backend

Research direction

The issue does not name any files, tests, or entry points. Start by locating the existing Pict-rs purge logic and how posts and comments reference media; define the behavior for orphaned and removed content, then add coverage for each case.

Written by the indexing model from the issue text.

Description

enhancement

Hi there! I'd love to see a feature in LPP that allows you to configure only purging media from pictrs that is not tied to a post (or comment, if possible).

My instance is currently on a VM that is limited to 128GBs of space, and at the current moment it'd be a bit difficult to expand it. I'm not super concerned with old posts that contain only pure text / links to external stuff, but media that no longer is attached to a post/comment would be nice to remove.

It'd also be even more convenient if this could apply to posts that have been removed (either by a mod or the user themselves) since posts tend to get removed, but not necessarily purged.

Super appreciative of LPP altogether though!

Dominant language
JavaScript
Stars
25
Forks
6
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Fmstrat/lpp

All issues in Fmstrat/lpp

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.