Commit graph

355 commits

Author SHA1 Message Date
Alex Gleason
6542d6a777
Move uploader.ts to utils, make it kind of like api.ts 2024-05-18 22:04:43 -05:00
Alex Gleason
82c03dcb56
Rewrite all the uploaders 2024-05-18 22:00:24 -05:00
Alex Gleason
b1b341d3b8
Insert media URL into text 2024-05-18 15:29:12 -05:00
Alex Gleason
e7d350a0e3
Fix uploading by URL 2024-05-18 14:54:10 -05:00
Alex Gleason
611a94bdcf
Fix uploading (almost) 2024-05-18 14:32:50 -05:00
Alex Gleason
7d34b9401e
Support imeta tags 2024-05-18 13:22:20 -05:00
Alex Gleason
5aacbe7af5
Fix media uploads due to 'awaiting' a query builder instance 2024-05-16 18:53:04 -05:00
P. Reis
e61cbecb3e refactor(unreblog): update error messages and query with Storages.db() 2024-05-16 10:38:30 -03:00
Alex Gleason
137bd0dae0
adminAccountsController: fix type error with DittoEvent 2024-05-14 22:19:33 -05:00
Alex Gleason
af9fb6aaa3
Sort imports of streaming.ts 2024-05-14 20:05:38 -05:00
P. Reis
a1326dedcc fix(streaming): async storage 2024-05-14 21:53:50 -03:00
P. Reis
9e34838de8 Merge branch 'main' into fix-blocked-users-in-streaming
(((updating local branch)))
2024-05-14 21:51:53 -03:00
P. Reis
0383726663 fix(streaming): use policy instead of hand coding 2024-05-14 21:44:19 -03:00
P. Reis
4d342dff4a fix(streaming): move get muted users logic before upgrading connection to web socket 2024-05-14 21:14:00 -03:00
Alex Gleason
2fd50261f9
streaming: actually hydrate with optimizer 2024-05-14 19:11:38 -05:00
Alex Gleason
477ee8b124
Fix hydrateEvents in streaming 2024-05-14 19:09:25 -05:00
Alex Gleason
d3a7f0849f
deno lint 2024-05-14 19:02:15 -05:00
Alex Gleason
68b5887ed0
Don't let your memes be dreams 2024-05-14 18:24:34 -05:00
P. Reis
b626d75262 fix(streaming): posts from blocked users does not show up in global tab 2024-05-14 14:22:37 -03:00
Alex Gleason
c715827c81
c.get('pubkey') -> await c.get('signer')?.getPublicKey() 2024-05-14 11:57:03 -05:00
Alex Gleason
3b0739f187
Add a getClientConnectUri function, add "Nostr Connect" link in the OAuth form 2024-05-12 13:12:46 -05:00
Alex Gleason
bdfa6f8826
Add a getInstanceMetadata function to DRY a few controllers 2024-05-12 12:32:40 -05:00
Alex Gleason
928ae4ec22
oauthController: calculate the script hash on the fly so we can edit it 2024-05-12 10:56:27 -05:00
Alex Gleason
65034a4aae
Support Explicit Addressing 2024-05-11 14:34:02 -05:00
Alex Gleason
afcf28b506 Merge branch 'admin-accounts-perform-action' into 'main'
Implement Mastodon API - perform action against an account

Closes #114

See merge request soapbox-pub/ditto!240
2024-05-09 16:46:54 +00:00
P. Reis
4fa6b96d15 refactor(admin action): mute account even if it doesn't have a kind 0 2024-05-09 13:44:05 -03:00
P. Reis
9e2225873d feat: implement action against an account
- Action of deactivating an account by muting it in the entire server
2024-05-08 20:12:55 -03:00
Alex Gleason
8530749192
reportController: hydrate the report itself to get the author 2024-05-08 15:03:58 -05:00
Alex Gleason
f99958c40e
reportsController -> reportController 2024-05-08 14:59:30 -05:00
P. Reis
e8b690e262 fix(admin resolve): create admin event instead of create normal event 2024-05-08 10:32:10 -03:00
P. Reis
57495dbd7a feat: implement report resolve 2024-05-07 20:49:42 -03:00
P. Reis
53a8871a54 refactor: change 'singleAdminReportsController' to 'adminReportController' 2024-05-07 11:29:49 -03:00
P. Reis
17706d3b20 feat: implement view single report 2024-05-07 10:19:08 -03:00
P. Reis
24068d12d0 refactor(reports): rename variables and remove type assertion 2024-05-06 11:47:05 -03:00
P. Reis
394599734f fix(reports): put notes in tag & only let comment in event.content 2024-05-05 15:45:24 -03:00
P. Reis
7890504add refactor: view info about all reports 2024-05-05 14:20:13 -03:00
P. Reis
d903a2d0fb Merge branch 'main' into admin-reports-api
Update local branch & solve conflicts in hydrate.ts
2024-05-04 20:23:16 -03:00
P. Reis
af7b83cf8a feat: create /api/v1/admin/reports endpoint & controller 2024-05-04 20:10:18 -03:00
Alex Gleason
e25372313b
suggestions: fix profile lookup, limit to 20 items for now 2024-05-03 18:32:35 -05:00
Alex Gleason
4ee4266843
instance: add 'v2_suggestions' to features 2024-05-03 18:28:07 -05:00
Alex Gleason
cfb0d3f04c Merge branch 'suggestions' into 'main'
Start suggestions API

See merge request soapbox-pub/ditto!218
2024-05-03 23:24:53 +00:00
Alex Gleason
0f3fbbcb28
Start suggestions API 2024-05-03 18:21:40 -05:00
Alex Gleason
5001567b00
Streaming: temporarily remove UserStore (allow blocked posts through) 2024-05-03 17:20:35 -05:00
Alex Gleason
a2c5b5e61d
Markers: only allow 'home' and 'notifications' markers 2024-05-03 16:20:07 -05:00
Alex Gleason
8e178338b7
Implement Markers API 2024-05-03 16:17:36 -05:00
Alex Gleason
2ee668d562 Merge branch 'feat-create-reports' into 'main'
Create user reports through kind 1984

Closes #97

See merge request soapbox-pub/ditto!210
2024-05-03 14:25:22 +00:00
P. Reis
f2f0aa8741 fix(accountLookup): fix user not found by using 'accountFromPubkey' 2024-05-03 09:52:25 -03:00
P. Reis
ca5433bcc7 refactor(reports): update code according to code review in MR 210 2024-05-02 20:21:58 -03:00
Alex Gleason
09c596c9e4
Add back block controllers, but 422 them 2024-05-02 15:34:17 -05:00
Alex Gleason
4c71dec6ce
Rename blocks to mutes in the API 2024-05-02 15:26:46 -05:00