Changeset e2c3d09 in Klonkt for src/routes/activitypub.js
- Timestamp:
- 07/31/2026 12:33:18 PM (6 weeks ago)
- Branches:
- main
- Children:
- 2dd1dc4
- Parents:
- 859b1707
- File:
-
- 1 edited
-
src/routes/activitypub.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/activitypub.js
r859b1707 re2c3d09 23 23 import path from 'path'; 24 24 import fs from 'fs'; 25 import { fileURLToPath } from 'url';26 25 import { randomUUID } from 'crypto'; 26 import { mediaDir } from '../config/paths.js'; 27 27 28 28 const router = express.Router(); … … 422 422 // AP convention) into the same store the reply editor uses, and gets back 423 423 // { url, mediaType, name } to attach on a note (e.g. the help-buoy capture). 424 const AP_MEDIA_DIR = path.resolve( 425 process.env.REPLY_MEDIA_PATH || 426 path.join(path.dirname(fileURLToPath(import.meta.url)), '..', '..', 'storage', 'media', 'reply-media') 427 ); 424 const AP_MEDIA_DIR = mediaDir('REPLY_MEDIA_PATH', 'reply-media'); 428 425 fs.mkdirSync(AP_MEDIA_DIR, { recursive: true }); 429 426 const AP_MEDIA_EXT = new Set(['.jpg', '.jpeg', '.png', '.webp', '.gif', '.mp3', '.m4a', '.ogg', '.opus', '.flac', '.wav', '.mp4', '.webm', '.mov']);
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)