Alex Gleason
|
43499f2dfd
|
media: add attachment view, unify types
|
2023-09-09 21:33:12 -05:00 |
Alex Gleason
|
cf9a754b02
|
media: pukey --> pubkey, fix adding media tags to event
|
2023-09-09 20:12:47 -05:00 |
Alex Gleason
|
0b867afd8e
|
unattached-media: delete orphaned attachments after 15 minutes
|
2023-09-09 19:27:39 -05:00 |
Alex Gleason
|
46b9deffce
|
utils: add ipfs module
|
2023-09-09 19:13:42 -05:00 |
Alex Gleason
|
e8053ba072
|
unattached-media: cid --> url
|
2023-09-09 18:12:54 -05:00 |
Alex Gleason
|
c88b174d02
|
Add unattached_media table, insert one when uploading a file
|
2023-09-09 17:41:30 -05:00 |
Alex Gleason
|
c6b20e68f6
|
db/events: refactor filterIndexableTags function
|
2023-09-09 16:24:53 -05:00 |
Alex Gleason
|
f8b2efb484
|
db/events: refactor insertEvent into smaller functions
|
2023-09-09 16:08:30 -05:00 |
Alex Gleason
|
96ff31719e
|
db/events: pass EventData, index all media from local users
|
2023-09-09 15:48:03 -05:00 |
Alex Gleason
|
d24318fd0d
|
db/events: index "media" tags, rearrange conditionals to optimize processing
|
2023-09-09 15:39:49 -05:00 |
Alex Gleason
|
6e139985ac
|
db/events: add a baseline 200 character limit to tag values
|
2023-09-09 15:31:43 -05:00 |
Alex Gleason
|
fe08aaa2a3
|
db/events: use stricter tagConditions to not pollute the database
|
2023-09-09 15:29:17 -05:00 |
Alex Gleason
|
b5a84627c8
|
statuses: enable posting with media attachments
|
2023-09-08 18:45:00 -05:00 |
Alex Gleason
|
dcc9d05ee5
|
auth98: fix nsec flow
|
2023-09-08 18:29:26 -05:00 |
Alex Gleason
|
527e276340
|
Fix nip98 signing (validate proof), skip validating payload for media requests
|
2023-09-08 18:22:38 -05:00 |
Alex Gleason
|
969d8bfe7f
|
Add media endpoints, require nip98 proof to upload them
|
2023-09-08 17:00:07 -05:00 |
Alex Gleason
|
2c943872a8
|
media: enforce a filesize limit on uploads
|
2023-09-08 16:48:27 -05:00 |
Alex Gleason
|
acc18adffb
|
media: return the appropriate Attachment type
|
2023-09-08 16:15:34 -05:00 |
Alex Gleason
|
8ae89462b7
|
Add a configUploader module to select the uploader based on config
|
2023-09-08 16:04:55 -05:00 |
Alex Gleason
|
34acc99000
|
Add a precheck file to throw when config is wrong
|
2023-09-08 15:48:00 -05:00 |
Alex Gleason
|
4f57ac0352
|
uploads: make uploader and media URL configurable
|
2023-09-08 15:20:57 -05:00 |
Alex Gleason
|
014b9f6d29
|
uploaders: allow deleting files by CID
|
2023-09-08 15:01:52 -05:00 |
Alex Gleason
|
c40f10539d
|
ipfs: make API URL configurable, reorganize config
|
2023-09-07 19:22:28 -05:00 |
Alex Gleason
|
c4af44d582
|
Move s3 to separate uploader module, add ipfs uploader
|
2023-09-07 16:59:05 -05:00 |
Alex Gleason
|
4622b52f78
|
mediaController: get cid, fix permissions, host on /ipfs
|
2023-09-06 22:10:28 -05:00 |
Alex Gleason
|
3fc60c78d2
|
Add a mediaController for s3 uploads
|
2023-09-06 17:55:46 -05:00 |
Alex Gleason
|
4b4bfd48c7
|
Merge branch 'delete' into 'develop'
Process deletions
Closes #63
See merge request soapbox-pub/ditto!36
|
2023-09-06 17:34:47 +00:00 |
Alex Gleason
|
5f82f4f11b
|
client: use the same pool as the firehose
|
2023-09-06 01:18:07 -05:00 |
Alex Gleason
|
17c75e6761
|
Move pool to a separate module (to avoid importing firehose in tests)
|
2023-09-05 22:00:32 -05:00 |
Alex Gleason
|
f2ccb5254e
|
cron: run cleanupEvents on startup
|
2023-09-05 21:52:16 -05:00 |
Alex Gleason
|
a69b7f54f8
|
pipeline: broadcast deletions to all known relays
|
2023-09-05 21:45:30 -05:00 |
Alex Gleason
|
e2b88d57d9
|
pipeline: process kind 5 deletion events
|
2023-09-05 21:24:59 -05:00 |
Alex Gleason
|
22ddc7b1a8
|
pipeline: remove unnecessary async keyword from trackHashtags
|
2023-09-05 20:35:58 -05:00 |
Alex Gleason
|
48195f02b3
|
pipeline: don't store event if a deletion for it exists
|
2023-09-05 20:31:34 -05:00 |
Alex Gleason
|
97a3478b1a
|
cron: change cleanupEvents to every 15 minutes
|
2023-09-05 17:48:50 -05:00 |
Alex Gleason
|
a46381849f
|
db/events: delete FTS rows when deleting events
|
2023-09-05 17:25:54 -05:00 |
Alex Gleason
|
a25d6c9755
|
db: pragma, enable fk constraints, enable autovacuum full
|
2023-09-05 17:25:14 -05:00 |
Alex Gleason
|
02049ed9d1
|
pipeline: fix isFresh comparison
|
2023-09-05 17:10:20 -05:00 |
Alex Gleason
|
5c02fd0773
|
db/relays: normalize url before inserting
|
2023-09-05 16:58:34 -05:00 |
Alex Gleason
|
2ff40c8fc5
|
db/events: rework tags, make event_id a FK to events again, drop value_2 and value_3
|
2023-09-05 16:55:16 -05:00 |
Alex Gleason
|
4708839fd6
|
db: improve output of migrations, exit on failure
|
2023-09-05 16:05:02 -05:00 |
Alex Gleason
|
cdffe42cfd
|
db/events: delete tags during deleteFilters
|
2023-09-05 13:23:45 -05:00 |
Alex Gleason
|
df17f62ecb
|
db/events: try fixing types in CI?
|
2023-09-05 12:31:59 -05:00 |
Alex Gleason
|
aea07fd28a
|
db/events: fix type error
|
2023-09-04 22:16:43 -05:00 |
Alex Gleason
|
5d19c21f51
|
cron: delete old remote events every hour
|
2023-09-04 19:46:39 -05:00 |
Alex Gleason
|
08dd5fa4eb
|
db/events: fix `local: false` filter
|
2023-09-04 17:17:47 -05:00 |
Alex Gleason
|
8ec215402f
|
db/migrations: fix `down` in 003_events_admin to drop the new "admin" column, not the "relays" table (whoops)
|
2023-09-04 13:20:07 -05:00 |
Alex Gleason
|
25e023aaf2
|
db/users: add indexes on users.pubkey and users.username
|
2023-09-04 13:18:11 -05:00 |
Alex Gleason
|
561ae9532a
|
db/events: getFiltersQuery, break to multiple lines for readability
|
2023-09-04 13:04:20 -05:00 |
Alex Gleason
|
1f06035bf2
|
db/events: getFiltersQuery, improve variable names
|
2023-09-04 13:03:10 -05:00 |