Commit graph

106 commits

Author SHA1 Message Date
P. Reis
b77c8a00cd perf: make up to 5 calls to database in hydrateEvents & remove old hydrate functions 2024-04-22 22:15:36 -03:00
Alex Gleason
9c91e41e87
Switch NSpec to Nostrify, update imports 2024-04-19 16:39:35 -05:00
P. Reis
e2b377d9c7 fix: reblogged field boolean value takes into account viewerPubkey 2024-04-19 11:12:11 -03:00
P. Reis
e4892c3e4a fix: response with quote field hydrated in create status 2024-04-16 14:44:04 -03:00
P. Reis
6248272243 feat: add quote repost 2024-04-15 17:19:37 -03:00
P. Reis
15853d79df refactor: remove kind 1 event from hydrateEvents in reblog controller 2024-04-13 18:31:30 -03:00
P. Reis
37bee709cd perf: hydrate repost events in reblog endpoint & streaming 2024-04-13 18:16:15 -03:00
P. Reis
24efca5ea0 perf: hydrate repost event in home timeline 2024-04-12 21:51:57 -03:00
P. Reis
073a3df17e feat: add support for quote repost 2024-04-12 14:07:22 -03:00
P. Reis
9f24f35a21 refactor: cast pubkey as string 2024-04-09 20:32:27 -03:00
Alex Gleason
a63dc8be4e Apply 2 suggestion(s) to 1 file(s) 2024-04-09 22:08:37 +00:00
P. Reis
7e8401688c feat: undo repost 2024-04-09 18:27:17 -03:00
Alex Gleason
70a29a74fb Merge branch 'repost-feat' into 'main'
feat: repost functionality

See merge request soapbox-pub/ditto!133
2024-04-08 15:54:43 +00:00
Alex Gleason
1f7a4664ec Apply 2 suggestion(s) to 2 file(s) 2024-04-08 15:49:35 +00:00
P. Reis
ba08958b30 feat: attempt to delete repost if original post is deleted 2024-04-06 22:32:39 -03:00
Alex Gleason
b031224fe5
createStatusController: parse hashtags in text 2024-04-06 19:15:59 -05:00
Alex Gleason
7e7cf1df64
createStatusController: parse mentions in text 2024-04-06 18:51:37 -05:00
P. Reis
bd5899029e refactor: deno fmt 2024-04-05 19:52:29 -03:00
P. Reis
178a3c4d0e feat: repost functionality 2024-04-05 19:44:12 -03:00
Alex Gleason
2a032b7b7b
DELETE /api/v1/statuses/:id 2024-03-30 13:34:18 -05:00
Alex Gleason
5b24b7ad39
Pass Request signal down from API controllers 2024-01-23 15:58:59 -06:00
Alex Gleason
aaf01462c1
Update code to use new DittoEvent and DittoFilter. Event -> NostrEvent 2024-01-23 12:07:22 -06:00
Alex Gleason
826a244f47
Add status zap endpoint, publish zap request to pipeline 2024-01-15 16:43:56 -06:00
Alex Gleason
43359f787b
web.ts -> api.ts 2024-01-01 17:03:32 -06:00
Alex Gleason
3341d6aedd
Add pinController, unpinController 2024-01-01 16:23:08 -06:00
Alex Gleason
5f6715db46
Add unbookmarkController 2024-01-01 14:35:46 -06:00
Alex Gleason
69a44f9d2b
Add bookmarkController 2024-01-01 13:45:07 -06:00
Alex Gleason
e5c8f8c146
Bump the timeout a bit when fetching an individual status 2023-12-31 12:48:49 -06:00
Alex Gleason
a5369d9826
Ensure relations are loaded throughout the API where needed 2023-12-10 16:21:18 -06:00
Alex Gleason
a6947441fc
renderStatus: don't fetch the author, expect it to be passed in 2023-12-06 12:04:24 -06:00
Alex Gleason
d49c63bb1a
Move statuses view into its own file 2023-10-06 15:37:31 -05:00
Alex Gleason
9ca3ec08a3
Delete transformers directory, rename views 2023-10-06 12:02:24 -05:00
Alex Gleason
cf9a754b02
media: pukey --> pubkey, fix adding media tags to event 2023-09-09 20:12:47 -05:00
Alex Gleason
b5a84627c8
statuses: enable posting with media attachments 2023-09-08 18:45:00 -05:00
Alex Gleason
9b67d7a7c0
Add followers/following endpoints
Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/69
2023-08-30 10:27:45 -05:00
Alex Gleason
b27b84e3fb
Add favourited_by and reblogged_by controllers 2023-08-29 18:08:00 -05:00
Alex Gleason
9d714b6173
Pass viewerPubkey to toStatus in more places 2023-08-29 14:48:28 -05:00
Alex Gleason
2ee29bf1e2
Make favourites stick, refactor some async logic in threads 2023-08-29 14:44:59 -05:00
Alex Gleason
bcfc3e2414
Use createEvent in more places 2023-08-19 22:25:45 -05:00
Alex Gleason
23928c0024
Move hono-related functions until utils/web 2023-08-19 14:05:08 -05:00
Alex Gleason
719b703e7c
client: remove publish function, create statuses through pipeline 2023-08-17 20:54:11 -05:00
Alex Gleason
0158a6979e
Publish events through pipeline 2023-08-17 20:45:50 -05:00
Alex Gleason
4f9b5c1431
statusController: remove unnecessary "as Event" 2023-08-17 14:57:46 -05:00
Alex Gleason
7330cd10e2
Refactor getEvent to take an opts object 2023-08-17 14:51:49 -05:00
Alex Gleason
870a6f5261
Add queries module for getting events for certain application needs 2023-08-17 13:12:38 -05:00
Alex Gleason
c15194020f
Delete event.ts, use nostr-tools types 2023-08-16 21:53:51 -05:00
Alex Gleason
63772022cf
deno fmt 2023-08-10 14:56:14 -05:00
Alex Gleason
e5082ed805
transmogrify --> transformers 2023-07-13 20:47:09 -05:00
Alex Gleason
97e6f1385c
Move transmute into transmogrify directory 2023-07-13 20:23:04 -05:00
Alex Gleason
cc751f03a7
Refactor to use nostrDate() and nostrNow() 2023-07-08 15:04:50 -05:00