Commit Graph

2 Commits (186f62fff993ed9bdb15aad9246489e6b2f145f2)

Author SHA1 Message Date
Your Name 186f62fff9 change: admin:resyncemoji takes a required list of filenames
Instead of scanning all emoji, target specific files by name:
  admin:resyncemoji "26109.png,1234.gif"

Looks up each by media_path (emoji/{filename}), and for found remote emoji
re-downloads from image_remote_url onto the active disk. Reports per-file
status (resynced/skipped/failed/not_found). --missingonly still guards each
against the disk so present files are left alone; --dry-run and --force.
4 weeks ago
Your Name 5764c135f5 feat: add admin:resyncemoji to re-download remote emoji from origin
Re-fetches remote custom emoji media from image_remote_url (SSRF-hardened via
SecureMediaFetchService) and stores it on the active disk. Useful to repair
emoji whose stored file went missing.

- --missingonly checks each emoji's file on the active disk (cloud when cloud
  storage is enabled) and only re-downloads the ones that are absent
- --dry-run, --limit, --force
- CustomEmojiService::resync() does the per-emoji fetch+store; CustomEmoji
  gains a mediaExists() helper
4 weeks ago