Wykres commitów

14 Commity (main)

Autor SHA1 Wiadomość Data
Matteo Cargnelutti 5a02797a10 Typo 2022-11-29 16:08:20 -05:00
Matteo Cargnelutti 65315dcaa6 Version bump, nunjucks envs 2022-11-29 16:00:38 -05:00
Matteo Cargnelutti 8e30fe2350 Hybrid ip + access key system 2022-11-29 15:39:08 -05:00
Matteo Cargnelutti e0c6134119 First implementation of IP rate limiting 2022-11-29 14:31:06 -05:00
Matteo Cargnelutti de8d6f1038 v0.0.2
New features:
- `t.co` urls resolution map as attachment (CSV file)
- PDF filenames based on twitter url and creation date

Dev "quality of life" updates:
- Basic integration tests and GitHub CI
- HTML 404s
- PDF "producer" field now contains the app's version number
- Better checkbox field name
- Documentation edits
2022-11-27 19:04:54 -05:00
Matteo Cargnelutti b0a98452d9 Migration to `thread-keeper` 2022-11-22 14:08:28 -05:00
Matteo Cargnelutti fa7651271f Clean up and documentation 2022-11-21 13:20:25 -05:00
Matteo Cargnelutti 1a5b78dfe1
Update app/server.js
Co-authored-by: Ben Steinberg <bsteinberg@law.harvard.edu>
2022-11-21 09:26:47 -05:00
Matteo Cargnelutti f5ca37d831 Implements a "check PDF" feature
Adds a "Check PDF" dialog allowing to compare a client-side generated SHA-512 hash of a file against archive.social's logs.

It is primitive, but SuccessLog loads all available hashes from success-log.tsv on app boot into a hashmap, which gets updated as new entries get created.

Other quality-of-life updates include some minor CSS tweaks and refactoring of AccessKeys.js to match SuccessLog.js.
2022-11-21 01:34:56 -05:00
Matteo Cargnelutti bb3c37bed4 Attachments issue: workaround (see notes)
I finally found it!

The problem comes from the fact that `ghostscript` behaves differently on Mac OS and Linux: on the latter, it strips existing attachments.

I was able to confirm this is not just version related, unfortunately, and might be hard to fix.

`pdf-crop-margins` is also affected by this issue, since it uses `ghostscript` behind the scenes (at least for what we want it to do).

I therefore put together a quickfix / workaround, resizing the PDF manually to try and get most of the trailing whitespace out, and skipping compression.

The cropping is much less consistent but!
- It's much _much_ faster
- I _think_ this should fix attachments on prod
- We can revisit when time allows

I suspect I will need to make further adjustments to the cropping logic once this has been tested on the production server.

This commit also adds an "Unfold thread" checkbox on the homepage form, allowing to skip browser behaviors (which some times gives better results).
2022-11-19 02:27:11 -05:00
Matteo Cargnelutti 0022fb4670 Tweaks 2022-11-18 16:44:33 -05:00
Matteo Cargnelutti 75f70bbe40 Trying something smoother for delivery 2022-11-18 16:29:04 -05:00
Matteo Cargnelutti 4fb42cfabb Misc copy edits 2022-11-18 11:51:49 -05:00
Matteo Cargnelutti 2c3451045b Pre-alpha 2022-11-18 11:20:26 -05:00