Commit Graph

697 Commits

Author SHA1 Message Date
Alex Gleason 35d8b83b10
Add installation files 2023-09-11 14:42:39 -05:00
Alex Gleason 94671b6a98
s3: create the client instance from a function each time (so missing config doesn't crash it) 2023-09-11 14:42:29 -05:00
Alex Gleason c20e0a0200 Merge branch 'registrations' into 'develop'
Enable registrations, require proof-of-work

Closes #6

See merge request soapbox-pub/ditto!39
2023-09-11 17:59:28 +00:00
Alex Gleason ef96fa539a
Render status account from pubkey 2023-09-11 09:46:41 -05:00
Alex Gleason 31114b6094
accounts: return a blank account for verify_credentials if it isn't resolved 2023-09-11 09:08:15 -05:00
Alex Gleason 1b2f4d9a54
accounts: return token after registering account 2023-09-11 07:17:00 -05:00
Alex Gleason 10a804b60e
Remove POW requirement for now 2023-09-11 05:57:50 -05:00
Alex Gleason bacb872a18
Add /api not implemented controller 2023-09-11 04:55:15 -05:00
Alex Gleason a5bf09ed2b
Resolve any file in public/ 2023-09-11 04:14:08 -05:00
Alex Gleason 9cda8e3000
csp: use template literals to avoid escaping single quotes 2023-09-11 04:07:54 -05:00
Alex Gleason 4310bb7157
Add a CSP 2023-09-11 04:04:55 -05:00
Alex Gleason 8a9f8454bf
Serve a frontend through Ditto 2023-09-11 00:19:56 -05:00
Alex Gleason 82c4f0827e
Make registrations configurable by env 2023-09-10 23:44:30 -05:00
Alex Gleason 0adb6f5eba
Add messages to HTTPException's 2023-09-10 19:43:07 -05:00
Alex Gleason 75dd2652d2
app: remove unused account search fallback endpoint 2023-09-10 19:42:41 -05:00
Alex Gleason e3f11545b7
/api/v1/acccounts --> /api/v1/accounts 2023-09-10 19:23:50 -05:00
Alex Gleason 2d7398e9d1
nip98: fix pow check 2023-09-10 17:11:13 -05:00
Alex Gleason 607ef4b980
Make POW configurable, expose over the API 2023-09-10 15:38:49 -05:00
Alex Gleason b725550fc4
ci: remove `check` job, since `test` already does it 2023-09-10 15:14:01 -05:00
Alex Gleason 052c00821d
Enable registrations, require proof-of-work 2023-09-10 15:07:31 -05:00
Alex Gleason 35b91812fc
Merge branch 'media' into 'develop'
Media uploads

Closes #50

See merge request soapbox-pub/ditto!37
2023-09-10 15:26:33 +00:00
Alex Gleason b9476ccbd6
pipeline: delete unattached-media rows when authoring an event 2023-09-09 22:27:37 -05:00
Alex Gleason 0d343fa190
db/unattached-media: refactor queries, DRY 2023-09-09 22:03:02 -05:00
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