Commit graph

  • 995bb8578d fix migration WHERE clause to actually select all rows kim 2023-11-10 17:16:17 +0000
  • 27ebaea751 ensure the votes slice is properly set in ExtractPoll() kim 2023-11-10 16:36:05 +0000
  • 91fc1de116 simplify the poll dereferencer check functions kim 2023-11-10 16:32:30 +0000
  • c4161b70c9 make poll parsing + handling more robust against misskey's style of polls (endTime not always set, can be never-ending) kim 2023-11-11 10:05:07 +0000
  • ba9d6b467a
    [feature] Media attachment placeholders (#2331) tobi 2023-11-10 19:29:26 +0100
  • da40102afa simplify cleanup tsmethurst 2023-11-10 19:22:43 +0100
  • d2d5fe467f Merge branch 'main' into media_attachment_placeholders tsmethurst 2023-11-10 18:24:43 +0100
  • c7ecab9e6f
    [chore/bugfix/horror] Allow expires_in and poll choices to be parsed from strings (#2346) tobi 2023-11-10 17:42:48 +0100
  • 096c517cc3 [bugfix] Don't try to update suspended accounts (#2348) v0.12.2 0.12.2-cherry-pick tobi 2023-11-10 17:16:58 +0100
  • 7ce3a1e6f3
    [bugfix] Don't try to update suspended accounts (#2348) tobi 2023-11-10 17:16:58 +0100
  • f7f10b922f bail early if requesting account suspended tsmethurst 2023-11-10 16:33:18 +0100
  • 3d0a9428f4 [bugfix] Don't try to update suspended accounts tsmethurst 2023-11-10 16:14:53 +0100
  • 81f0f73346 tests, lint tsmethurst 2023-11-10 13:49:28 +0100
  • 7b77b5630b allow json poll fields to parse as floats or strings tsmethurst 2023-11-10 13:38:07 +0100
  • c06243ddc1 allow multiple values for test form fields tsmethurst 2023-11-10 13:37:40 +0100
  • 1a43087d90 switch to reduce nesting tsmethurst 2023-11-09 15:51:01 +0100
  • d59c98a3a0 fix read of underreported small files tsmethurst 2023-11-09 15:44:15 +0100
  • f39565845c Merge branch 'main' into media_attachment_placeholders tsmethurst 2023-11-09 14:02:18 +0100
  • 42a19cf390
    [bugfix/docs] Poll api fixups + swagger docs (#2345) tobi 2023-11-09 13:06:37 +0100
  • 844b2be797 serialize missing fields tsmethurst 2023-11-09 12:32:40 +0100
  • 847f7e020f swagger fixups tsmethurst 2023-11-09 12:32:22 +0100
  • b1c65ed9ac
    [bugfix] actually decrement votes during poll vote delete ... (#2344) kim 2023-11-09 08:08:46 +0000
  • 87291bcb9b actually decrement votes during poll vote delete ... kim 2023-11-09 00:08:29 +0000
  • bab2b7bb23 Merge branch 'main' into media_attachment_placeholders tsmethurst 2023-11-08 23:39:24 +0100
  • 34d0879c16
    [bugfix] fix poll vote count responses on client and fedi API vote creation (#2343) kim 2023-11-08 22:37:35 +0000
  • e1733143dd improved vote count calculation during backend -> frontend model conversion kim 2023-11-08 20:19:29 +0000
  • 7def67c862 increment vote counts before federating status update after vote in local poll kim 2023-11-08 20:05:54 +0000
  • 001cd0210b increment poll votes *before* enqueuing vote to client API worker kim 2023-11-08 19:51:24 +0000
  • 6f065693ce Merge branch 'main' into media_attachment_placeholders tsmethurst 2023-11-08 15:49:56 +0100
  • e9e5dc5a40
    [feature] add support for polls + receiving federated status edits (#2330) kim 2023-11-08 14:32:17 +0000
  • 51d778445e add a timed wait for account data to be deleted kim 2023-11-08 14:26:54 +0000
  • 11b4c09a1b fix a stinky ... kim 2023-11-08 14:10:20 +0000
  • 940fcdab3f update fedi / client API poll vote processing to send out status updates on vote in local poll kim 2023-11-08 14:00:55 +0000
  • 2483682bc4 remove unused function to appease the linter ... kim 2023-11-08 13:39:33 +0000
  • 1cb3be4f99 remove specified database types in order to let bun pick appropriate types for sqlite / postgres separately kim 2023-11-08 13:25:33 +0000
  • 156f1e5035 consolidate a bunch of the vote increment / decrement logic, and ensure poll after vote returns incremented version kim 2023-11-08 13:15:37 +0000
  • 7bd64eb1a1 whitespace formatting kim 2023-11-08 12:50:59 +0000
  • 1f00cc5c24 update failed ULID creation at time log msg to be more explanatory, do the same for the status ID kim 2023-11-08 12:45:59 +0000
  • 6aa8883765 update config/gen to use gofumpt instead of deprecated gofumports kim 2023-11-08 12:37:38 +0000
  • bf7ae4ee1d [feature] Use placeholders for unknown media types tsmethurst 2023-11-08 13:34:49 +0100
  • bc1221b7cb fix comment typo kim 2023-11-08 12:34:32 +0000
  • fb24043473 use apiutil to parse ID in poll handlers kim 2023-11-08 12:33:35 +0000
  • 7204ccedc3
    [chore]: Bump github.com/spf13/cobra from 1.7.0 to 1.8.0 (#2338) dependabot[bot] 2023-11-08 11:50:41 +0000
  • 357274420a add polls processor tests kim 2023-11-07 16:38:48 +0000
  • b928a1cfae add test for PutPollVote() kim 2023-11-07 16:01:06 +0000
  • 10601d4fdf make poll.Voters a ptr type to fit with bun's field tag semantics ... kim 2023-11-07 15:50:52 +0000
  • 02ee471afe add db.Get__By() tests for Poll and PollVote kim 2023-11-07 15:16:20 +0000
  • 4b7d29859e finish fixing tests kim 2023-11-07 14:52:09 +0000
  • 7bcf67c110 use oklog/ulid generated IDs, fix remaining tests kim 2023-11-07 14:30:38 +0000
  • ec40725ac4 add poll + poll vote test models kim 2023-11-07 12:55:11 +0000
  • 3ec8a34c0a appease the angery linter kim 2023-11-07 10:29:45 +0000
  • 16f2fa9747 remove unused code kim 2023-11-07 10:20:33 +0000
  • b4b4de8bcc improved wording kim 2023-11-07 10:20:00 +0000
  • 66e1a7446a fix envparsing test kim 2023-11-07 09:52:18 +0000
  • 35682c2097 fix small issues with poll swagger defs, regenerate swagger docs kim 2023-11-06 14:39:07 +0000
  • 1a61e00f52 add code comments for the new wrapping scheduler kim 2023-11-06 14:26:10 +0000
  • 19ac64ed4b fix rebase issue kim 2023-11-04 20:25:51 +0000
  • 187b871136 fix slice preallocation to be zero length kim 2023-11-04 13:21:59 +0000
  • 9a3262d70e fix error formatting directives kim 2023-11-04 13:02:00 +0000
  • 2cc1cab511 don't return on most worker errors, only if they prohibit later processing kim 2023-11-04 12:54:08 +0000
  • 6b69e1411b improved poll expiry notification time format kim 2023-11-04 12:21:50 +0000
  • e2c95d3e89 remove statusable check in update handler kim 2023-11-03 18:35:06 +0000
  • fa6600a06b log on expiry handler scheduling kim 2023-11-03 18:33:21 +0000
  • 8c12f8cc02 invalidate poll vote IDs in cache hooks kim 2023-11-03 18:31:44 +0000
  • 22196e30d1 fix incorrect log format directives kim 2023-11-03 17:32:22 +0000
  • ad61fdd73d on poll recently closed, send out poll notifications kim 2023-11-03 17:25:38 +0000
  • e0c732a3c7 update GetOpenPolls() to only return LOCAL open polls, by checking statuses.local column kim 2023-11-02 16:48:37 +0000
  • 87e3a90d0e fix angry linter + envparsing tests kim 2023-11-02 16:41:52 +0000
  • 9e796e3311 add polls support! now with vastly less commits as they were getting horribly messy kim 2023-11-04 20:22:21 +0000
  • 207ff248cf remove poll scheduling from startup function -- spoilers!!! ;) kim 2023-11-02 11:27:23 +0000
  • 3086551206 copy over new scheduler from feature/add-polls-support kim 2023-11-02 11:21:13 +0000
  • 9b76afc851
    [chore]: Bump github.com/jackc/pgx/v5 from 5.4.3 to 5.5.0 (#2336) dependabot[bot] 2023-11-06 14:44:53 +0000
  • 74b600655d
    [chore]: Bump github.com/tdewolff/minify/v2 from 2.20.0 to 2.20.6 (#2337) dependabot[bot] 2023-11-06 14:41:31 +0000
  • 28f85db30a
    [chore]: Bump modernc.org/sqlite from 1.26.0 to 1.27.0 (#2339) dependabot[bot] 2023-11-06 14:40:53 +0000
  • 2fb78a51f3
    [chore]: Bump modernc.org/sqlite from 1.26.0 to 1.27.0 dependabot[bot] 2023-11-06 06:41:58 +0000
  • 8bd75f2e9b
    [chore]: Bump github.com/spf13/cobra from 1.7.0 to 1.8.0 dependabot[bot] 2023-11-06 06:41:33 +0000
  • 04691db9e4
    [chore]: Bump github.com/tdewolff/minify/v2 from 2.20.0 to 2.20.6 dependabot[bot] 2023-11-06 06:41:15 +0000
  • c16b7b7f35
    [chore]: Bump github.com/jackc/pgx/v5 from 5.4.3 to 5.5.0 dependabot[bot] 2023-11-06 06:40:59 +0000
  • 41435a6c4e
    [feature] support canceling scheduled tasks, some federation API performance improvements (#2329) kim 2023-11-04 20:21:20 +0000
  • ccf161c2e2 remove now defunct DereferenceStatusAncestors() call in fediAPI kim 2023-11-04 20:15:05 +0000
  • e097bc34fb for newly dereferenced statuses, dereference ancestors synchronously kim 2023-11-04 20:09:59 +0000
  • 314dda196e
    [docs/bugfix] fix link to swagger yaml (#2333) tobi 2023-11-04 16:48:13 +0100
  • 5af5b53b5f [docs/bugfix] fix link to swagger yaml tsmethurst 2023-11-04 16:42:36 +0100
  • d1f967c97a comment-out panicfAt() kim 2023-11-04 13:24:52 +0000
  • 3ff0e2eb3a add code comments + comment-out currently unused Must___() functions kim 2023-11-04 12:07:08 +0000
  • 46694af8fb update functions to no longer panic, instead provide Must___() type functions kim 2023-11-04 11:55:44 +0000
  • 021ad84cc0 add note regarding how dereference announce handles ancestors / descendant fetching kim 2023-11-04 11:18:52 +0000
  • ae36b86e23 use util.Ptr() in bare-bones status creation kim 2023-11-04 11:06:05 +0000
  • 5b5e165f02 update tests to expect new APObjectModel usage in fediAPI Create:Note kim 2023-11-02 14:23:42 +0000
  • f7facb33df fix broken code kim 2023-11-02 13:35:12 +0000
  • ebee23822e copy over fediapi changes from features/add-polls-support (supports changed Create:Note fMsg logic) kim 2023-11-02 11:35:29 +0000
  • 00ddc76e42 copy over more of the ap + federation package changes from feature/add-polls-support kim 2023-11-02 11:32:15 +0000
  • f62c43e446 remove poll scheduling from startup function -- spoilers!!! ;) kim 2023-11-02 11:27:23 +0000
  • 6beca7e5db add code comments for the scheduler kim 2023-11-02 11:26:16 +0000
  • 582b017869 copy over new scheduler from feature/add-polls-support kim 2023-11-02 11:21:13 +0000
  • 4f25c6f50c after remote poll vote, refresh source status to get up-to-date vote counts kim 2023-11-02 11:11:40 +0000
  • 521160ef3a finish filling out ap package code comments / documentation kim 2023-11-02 11:04:16 +0000
  • ca93e29bb8 remove dead code kim 2023-10-31 22:24:16 +0000
  • b604920a32 remove sneaky code appearing again after rebase kim 2023-10-31 22:23:25 +0000
  • b6387e78a4 update json encoding characteristics of frontend poll models kim 2023-10-31 22:00:25 +0000