Commit Graph

  • c6b20e68f6 db/events: refactor filterIndexableTags function Alex Gleason 2023-09-09 16:24:53 -05:00
  • f8b2efb484 db/events: refactor insertEvent into smaller functions Alex Gleason 2023-09-09 16:08:30 -05:00
  • 96ff31719e db/events: pass EventData, index all media from local users Alex Gleason 2023-09-09 15:48:03 -05:00
  • d24318fd0d db/events: index "media" tags, rearrange conditionals to optimize processing Alex Gleason 2023-09-09 15:39:49 -05:00
  • 6e139985ac db/events: add a baseline 200 character limit to tag values Alex Gleason 2023-09-09 15:31:15 -05:00
  • fe08aaa2a3 db/events: use stricter tagConditions to not pollute the database Alex Gleason 2023-09-09 15:29:17 -05:00
  • b5a84627c8 statuses: enable posting with media attachments Alex Gleason 2023-09-08 18:45:00 -05:00
  • dcc9d05ee5 auth98: fix nsec flow Alex Gleason 2023-09-08 18:29:26 -05:00
  • 527e276340 Fix nip98 signing (validate proof), skip validating payload for media requests Alex Gleason 2023-09-08 18:22:38 -05:00
  • 969d8bfe7f Add media endpoints, require nip98 proof to upload them Alex Gleason 2023-09-08 17:00:07 -05:00
  • 2c943872a8 media: enforce a filesize limit on uploads Alex Gleason 2023-09-08 16:48:27 -05:00
  • acc18adffb media: return the appropriate Attachment type Alex Gleason 2023-09-08 16:15:34 -05:00
  • 8ae89462b7 Add a configUploader module to select the uploader based on config Alex Gleason 2023-09-08 16:04:55 -05:00
  • 34acc99000 Add a precheck file to throw when config is wrong Alex Gleason 2023-09-08 15:48:00 -05:00
  • 4f57ac0352 uploads: make uploader and media URL configurable Alex Gleason 2023-09-08 15:20:57 -05:00
  • 014b9f6d29 uploaders: allow deleting files by CID Alex Gleason 2023-09-08 15:01:30 -05:00
  • c40f10539d ipfs: make API URL configurable, reorganize config Alex Gleason 2023-09-07 19:22:28 -05:00
  • c4af44d582 Move s3 to separate uploader module, add ipfs uploader Alex Gleason 2023-09-07 16:59:05 -05:00
  • 4622b52f78 mediaController: get cid, fix permissions, host on /ipfs Alex Gleason 2023-09-06 22:10:28 -05:00
  • 3fc60c78d2 Add a mediaController for s3 uploads Alex Gleason 2023-09-06 17:55:46 -05:00
  • 4b4bfd48c7 Merge branch 'delete' into 'develop' Alex Gleason 2023-09-06 17:34:47 +00:00
  • 5f82f4f11b client: use the same pool as the firehose Alex Gleason 2023-09-06 01:18:07 -05:00
  • 17c75e6761 Move pool to a separate module (to avoid importing firehose in tests) Alex Gleason 2023-09-05 22:00:32 -05:00
  • f2ccb5254e cron: run cleanupEvents on startup Alex Gleason 2023-09-05 21:52:16 -05:00
  • a69b7f54f8 pipeline: broadcast deletions to all known relays Alex Gleason 2023-09-05 21:38:15 -05:00
  • e2b88d57d9 pipeline: process kind 5 deletion events Alex Gleason 2023-09-05 21:24:59 -05:00
  • 22ddc7b1a8 pipeline: remove unnecessary async keyword from trackHashtags Alex Gleason 2023-09-05 20:35:58 -05:00
  • 48195f02b3 pipeline: don't store event if a deletion for it exists Alex Gleason 2023-09-05 20:29:35 -05:00
  • 97a3478b1a cron: change cleanupEvents to every 15 minutes Alex Gleason 2023-09-05 17:48:50 -05:00
  • a46381849f db/events: delete FTS rows when deleting events Alex Gleason 2023-09-05 17:25:54 -05:00
  • a25d6c9755 db: pragma, enable fk constraints, enable autovacuum full Alex Gleason 2023-09-05 17:25:14 -05:00
  • 02049ed9d1 pipeline: fix isFresh comparison Alex Gleason 2023-09-05 17:10:20 -05:00
  • 5c02fd0773 db/relays: normalize url before inserting Alex Gleason 2023-09-05 16:58:34 -05:00
  • 2ff40c8fc5 db/events: rework tags, make event_id a FK to events again, drop value_2 and value_3 Alex Gleason 2023-09-05 16:11:38 -05:00
  • 4708839fd6 db: improve output of migrations, exit on failure Alex Gleason 2023-09-05 16:04:23 -05:00
  • cdffe42cfd db/events: delete tags during deleteFilters Alex Gleason 2023-09-05 13:23:45 -05:00
  • df17f62ecb db/events: try fixing types in CI? Alex Gleason 2023-09-05 12:31:59 -05:00
  • aea07fd28a db/events: fix type error Alex Gleason 2023-09-04 22:16:43 -05:00
  • 5d19c21f51 cron: delete old remote events every hour Alex Gleason 2023-09-04 19:45:33 -05:00
  • 08dd5fa4eb db/events: fix local: false filter Alex Gleason 2023-09-04 17:17:47 -05:00
  • 8ec215402f db/migrations: fix down in 003_events_admin to drop the new "admin" column, not the "relays" table (whoops) Alex Gleason 2023-09-04 13:19:27 -05:00
  • 25e023aaf2 db/users: add indexes on users.pubkey and users.username Alex Gleason 2023-09-04 13:18:11 -05:00
  • 561ae9532a db/events: getFiltersQuery, break to multiple lines for readability Alex Gleason 2023-09-04 13:04:20 -05:00
  • 1f06035bf2 db/events: getFiltersQuery, improve variable names Alex Gleason 2023-09-04 13:03:10 -05:00
  • e377d7b3ce events/db: add a deleteFilters function to delete all events from the local db matching the filters Alex Gleason 2023-09-04 12:58:35 -05:00
  • 81ca3e79be Merge branch 'fe-config' into 'develop' Alex Gleason 2023-09-04 00:21:22 +00:00
  • 5a3d112396 frontendConfigController: add a #d filter Alex Gleason 2023-09-03 19:18:05 -05:00
  • c54f9aa7b1 Merge branch 'fe-config' into 'develop' Alex Gleason 2023-09-04 00:14:40 +00:00
  • 7686371183 Implement frontend configurations Alex Gleason 2023-09-03 18:49:45 -05:00
  • 2f645920f5 Merge branch 'admin' into 'develop' Alex Gleason 2023-09-03 18:14:36 +00:00
  • 3c45a4a3aa sign: simplify awaitSignedEvent (remove unnecessary conditional, rearrange error, fix crash) Alex Gleason 2023-09-02 22:38:55 -05:00
  • 93f06fd342 config: preserve query params in Conf.local Alex Gleason 2023-09-02 22:38:21 -05:00
  • b81091f5da auth98: requireProof --> requireAdmin Alex Gleason 2023-09-02 20:52:17 -05:00
  • f7d74c97ca db/users: add admin column Alex Gleason 2023-09-02 20:52:02 -05:00
  • c8a5da086e sign: ensure the NIP-46 result matches the template Alex Gleason 2023-09-02 20:09:28 -05:00
  • 007565b513 eventSchema: ensure the event ID matches its hash Alex Gleason 2023-09-02 19:40:28 -05:00
  • 7595dfa2e5 auth98: make requireProof obtain the event over NIP-46 Alex Gleason 2023-09-02 19:33:13 -05:00
  • c8d6389132 sign: refactor the unnecessarily complex awaitSignedEvent function Alex Gleason 2023-09-02 18:56:20 -05:00
  • 61f5acc937 nip98: add a dedicated nip98 module, refactor auth98.ts Alex Gleason 2023-09-02 18:32:01 -05:00
  • 4c41ce8c0a @/nip05.ts --> @/utils/nip05.ts Alex Gleason 2023-09-02 13:43:01 -05:00
  • 6ef997fbd9 Merge branch 'favourites' into 'develop' Alex Gleason 2023-09-01 18:17:02 +00:00
  • 4ff27ddc04 Add /api/v1/favourites Alex Gleason 2023-09-01 13:14:27 -05:00
  • 7c2de9b2cf Merge branch 'unfurl-timeout' into 'develop' Alex Gleason 2023-08-31 02:43:11 +00:00
  • 54481ab96b Fix unfurl timeout Alex Gleason 2023-08-30 21:40:52 -05:00
  • 305c5035a2 Merge branch 'fts' into 'develop' Alex Gleason 2023-08-30 22:32:44 +00:00
  • b9fc663db4 Switch to my fork of deno-sqlite with FTS support Alex Gleason 2023-08-30 17:29:45 -05:00
  • 3cd6b6f3f3 db/events: index profiles in search Alex Gleason 2023-08-30 17:09:44 -05:00
  • e976f51d55 schemas/nostr: add search key to filters Alex Gleason 2023-08-30 16:19:21 -05:00
  • af76d8cbae Bump kysely-deno-sqlite to v1.0.1, remove as any from database type Alex Gleason 2023-08-30 16:12:39 -05:00
  • b7b5e67118 search: refactor/cleanup searchController Alex Gleason 2023-08-30 15:40:18 -05:00
  • 080cfe817b search: support account_id query param Alex Gleason 2023-08-30 15:31:07 -05:00
  • 799a9c1e9a search: support searching by account_id Alex Gleason 2023-08-30 15:22:39 -05:00
  • 8079679f18 search: support MastoAPI params, improve performance, improve value lookup Alex Gleason 2023-08-30 15:02:28 -05:00
  • 675010ddec search: fix FTS special characters, optimize search Alex Gleason 2023-08-30 14:03:16 -05:00
  • df14ff66bc search: search use FTS to search for statuses Alex Gleason 2023-08-30 12:16:04 -05:00
  • 5e9a3dd8d1 db/events: only index kind 1 events in search Alex Gleason 2023-08-30 12:07:29 -05:00
  • 02e1a4ce58 db/events: support "search" filter Alex Gleason 2023-08-30 12:04:45 -05:00
  • 0c83e759f3 Merge branch 'follows' into 'develop' Alex Gleason 2023-08-30 16:26:52 +00:00
  • 9b67d7a7c0 Add followers/following endpoints Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/69 Alex Gleason 2023-08-30 10:27:45 -05:00
  • 728f0bd657 accounts: followers/following & status counts Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/68 Alex Gleason 2023-08-30 09:49:06 -05:00
  • 62ea00dc6a Merge branch 'favourited-by' into 'develop' Alex Gleason 2023-08-29 23:09:47 +00:00
  • b27b84e3fb Add favourited_by and reblogged_by controllers Alex Gleason 2023-08-29 18:08:00 -05:00
  • 9b761ff960 firehose: apparently the since filter is essential Alex Gleason 2023-08-29 16:40:23 -05:00
  • 5a5604b6d2 Merge branch 'counters' into 'develop' Alex Gleason 2023-08-29 20:32:11 +00:00
  • ad823e587a accounts: remove unecessary sort call Alex Gleason 2023-08-29 15:29:12 -05:00
  • d01dbcbfee relay: add support for NIP-45 COUNT Alex Gleason 2023-08-29 15:24:07 -05:00
  • fc1ed59002 firehose: use limit: 0 instead of since Alex Gleason 2023-08-29 14:53:12 -05:00
  • 9d714b6173 Pass viewerPubkey to toStatus in more places Alex Gleason 2023-08-29 14:48:28 -05:00
  • 2ee29bf1e2 Make favourites stick, refactor some async logic in threads Alex Gleason 2023-08-29 14:44:59 -05:00
  • d4612d5f21 toStatus: make status counters work (local db only) Alex Gleason 2023-08-29 14:13:41 -05:00
  • 07ccc1934a Merge branch 'cleanup' into 'develop' Alex Gleason 2023-08-29 18:47:06 +00:00
  • 95761e2eef schema: add comments Alex Gleason 2023-08-29 13:28:16 -05:00
  • 2841d4f399 queries: remove unused import Alex Gleason 2023-08-29 13:25:58 -05:00
  • 77b09baa8c db/events: don't throw on duplicate events Alex Gleason 2023-08-29 13:20:21 -05:00
  • ebd933126a webfinger: fix import order Alex Gleason 2023-08-29 13:14:03 -05:00
  • d21ec6d241 apps: use AppController type Alex Gleason 2023-08-29 13:04:38 -05:00
  • 4d211d637e timelines: add DRY renderStatuses function Alex Gleason 2023-08-29 13:01:47 -05:00
  • 4216a7931a Add paginated helper function, DRY pagination code Alex Gleason 2023-08-29 12:55:00 -05:00
  • ce4a330812 Rename timeline controllers, homeController --> homeTimelineController, etc Alex Gleason 2023-08-29 12:41:14 -05:00
  • b6da5a0339 Merge branch 'tag-timeline' into 'develop' Alex Gleason 2023-08-29 00:53:08 +00:00