Commit Graph

  • 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
  • ea168ef3ec fix PutPollVote() to correctly use transaction kim 2023-10-31 21:53:45 +0000
  • 8667d6c978 remove excess where clause kim 2023-10-31 21:29:24 +0000
  • 582b78b6ca fix putting poll vote to update poll counts kim 2023-10-31 21:28:19 +0000
  • 7b2be3ea61 remove cached voter IDs list, instead store no. votes / voters in poll itself kim 2023-10-31 20:23:19 +0000
  • 04ca00f805 undo previous commits kim 2023-10-31 15:48:49 +0000
  • bba0f61854 fix per-choice counts not being provided for local statuses kim 2023-10-31 15:47:52 +0000
  • 02fbb3d5d5 correctly set the receiving account in fedi API poll vote enqueue kim 2023-10-31 15:33:40 +0000
  • 1d4b187ed6 log warn any unhandled create message types kim 2023-10-31 15:06:54 +0000
  • c3713a4e7c slightly more clear code kim 2023-10-31 15:06:43 +0000
  • f8caa97481 actually set the new poll on status on updating existing kim 2023-10-31 14:11:47 +0000
  • 145dc515a2
    Remove account_suspended_at_idx to resolve slow query issues (#2310) Sam Lade 2023-10-31 13:43:33 +0000
  • ec2673d321 catch the case of changed remote poll stats in dereference status logic kim 2023-10-31 13:27:38 +0000
  • a4f08ff2ef add support for cached remote vote + voter counts kim 2023-10-31 13:19:53 +0000
  • 748360e335 remove dereferenceancestors from CreateAnnounce(), DereferenceAnnounce() already handles this for remote statuses kim 2023-10-31 12:22:18 +0000
  • f7f726a7d3 fix possible nil exception in fetchStatusPolls() kim 2023-10-31 10:58:52 +0000
  • ca3a4f78b8 fix from federator UpdateStatus() to force a refresh, whether statusable provided or not kim 2023-10-30 20:58:53 +0000
  • 483aa2e1e1 fix the update / delete process for remote statuses with polls kim 2023-10-30 20:47:23 +0000
  • e737096257 ensure 'to' field gets set in poll optionable AS types kim 2023-10-30 20:07:22 +0000
  • 41d74a69cb fix CreatePollVote() to send as correct outbox IRI kim 2023-10-30 19:56:31 +0000
  • 5393965167 fix CreatePollVote() to specifically handle remote statuses, instead of the inverse... kim 2023-10-30 19:50:21 +0000
  • f1ab705515 fix possible panic in RefreshStatus() if not actually refreshed kim 2023-10-30 19:41:13 +0000
  • c81dea0c4e set the origin account in the poll expiry update queued message kim 2023-10-30 19:37:39 +0000
  • 3163379a80 add error on enqueueing federator message type left unhandled kim 2023-10-30 19:12:53 +0000
  • 0657c7154c add error on enqueueing client message type left unhandled kim 2023-10-30 19:12:01 +0000
  • 5859d6e27b fix incorrect activitytype sent for poll vote worker queueing kim 2023-10-30 19:10:48 +0000
  • ce48b64643 improved code formatting kim 2023-10-30 12:09:43 +0000
  • 8672e59fd7 some changes to how new statuses are ingested kim 2023-10-31 11:39:03 +0000
  • a5f6600127 correctly create new ID for poll + link to status in federatingDB kim 2023-10-25 17:07:42 +0100
  • 99275e3266 fix conversion of newly added polls kim 2023-10-25 16:55:49 +0100
  • 98bd63da8a correctly add the voted field to returned frontend poll kim 2023-10-25 16:46:02 +0100
  • f3f820dac8 correctly handle separate form data types kim 2023-10-25 16:40:14 +0100
  • a65db6a872 actually pass in the type converter kim 2023-10-24 17:33:42 +0100
  • 0ad3cc58b1 ACTUALLY ROUTE THE FUCKING POLLS ENDPOINT kim 2023-10-24 17:25:54 +0100
  • 4f5b9f2b17 allow caching of zero-length lists kim 2023-10-24 17:05:53 +0100
  • 71815310dc remove the old hacky dereferencer race condition fixes kim 2023-10-24 14:53:05 +0100
  • 04cc5b39a1 support passing in nil statusable in fedimessage kim 2023-10-20 14:24:13 +0100
  • 8c6fe480ed handle forwarded status updates kim 2023-10-20 14:19:54 +0100
  • 14abe0a7be better handling of forwarded status updates kim 2023-10-20 14:12:44 +0100
  • 1f23b75236 check for nil vote by requester kim 2023-10-20 13:49:37 +0100
  • 29e724e600 improved PollVote{} comment to explain how it may represent 1 / multiple kim 2023-10-20 10:36:54 +0100
  • 375c165bd3 use singular PollVote{} to store all votes by an account in a singular poll kim 2023-10-20 10:30:49 +0100
  • 4a2260e4a0 handle data-race on poll insert in enrichStatus() kim 2023-10-19 09:57:57 +0100
  • 1794cf5291 fix broken UpdatePoll() missing a where clause kim 2023-10-19 09:34:26 +0100
  • b0a87af8be fix poll vote db type kim 2023-10-18 15:07:11 +0100
  • e1b20946b9 add code comments to poll + poll vote database models kim 2023-10-18 15:03:57 +0100
  • bd697c7b30 always include vote counts when poll is by author kim 2023-10-18 14:54:44 +0100
  • 33c55fc0a1 add help text to common account not found errors kim 2023-10-18 14:47:37 +0100
  • 8ea5073461 formatting kim 2023-10-18 14:41:49 +0100
  • 5d49334e8a update to actually use safe text ... kim 2023-10-18 14:32:04 +0100
  • 9cac89af6d ensure the not found handler passes through safe text kim 2023-10-18 14:31:14 +0100
  • 494ca0fd8c add help text to not found errors kim 2023-10-18 14:21:33 +0100
  • 0c4db4279a fix bun column types kim 2023-10-18 13:51:55 +0100
  • f7a03cdd8e fix frontend polls showing as closed when they shouldn't be kim 2023-10-18 13:27:01 +0100
  • acaf5722e4 fix most of remaining tests kim 2023-10-18 11:56:47 +0100
  • 91cc6df303 fix the NewID() function to use any existing ID property if set. kim 2023-10-18 11:41:58 +0100
  • 0067bfa32c undo last commit, ensure poll gets added to frontend status repr kim 2023-10-10 11:10:12 +0100
  • e5581c651f return copy of URL on GetJSONLDId() kim 2023-10-10 10:55:49 +0100
  • 5d152532dc fix status common processor not being set kim 2023-10-10 09:06:29 +0100
  • 12c07a3b95 fix broken cache key in hooks kim 2023-10-10 09:01:15 +0100
  • aa4740734b ensure that timeline representations are appropriately invalidated during poll logic kim 2023-10-10 08:43:18 +0100
  • e5a24af3bc more test fix-up kim 2023-10-10 08:26:29 +0100
  • e5e22cabc4 add back the published property to statuses kim 2023-10-10 08:20:20 +0100
  • 9ffc4f67d6 fix changed activity ID format kim 2023-10-10 07:32:54 +0100
  • 4de5da0cd1 fix test panics due to changed scheduling of media cleanup task kim 2023-10-10 07:27:28 +0100
  • 3a29caefeb fix linter issues kim 2023-10-10 07:12:29 +0100
  • b6ef32f9c6 fix status poll migration kim 2023-10-10 07:09:30 +0100
  • 37ef420db1 don't panic if db nil on teardown (otherwise it hides other errors) kim 2023-10-10 07:03:56 +0100
  • 338e8c2ec2 add a database func to select all open polls, add a ScheduleAll() function kim 2023-10-09 20:26:25 +0100
  • 13fbd36a5b remove unneeded defer kim 2023-10-09 20:17:45 +0100
  • da45c70ed8 ensure poll gets marked as closed on expiry handler kim 2023-10-09 20:15:49 +0100
  • 227d5aa4c1 add poll expiry handler cancel() to worker wipestatus func kim 2023-10-09 17:31:36 +0100
  • 61a7c236ed start adding support for poll scheduling kim 2023-10-09 17:25:42 +0100
  • f439ec7a41 fix broken test(s), fix use of generics for < go1.21 kim 2023-10-09 13:01:16 +0100
  • 1e02218aae simplify some code kim 2023-10-09 12:51:59 +0100
  • c308b69df3 finish adding support for poll vote federation in / out kim 2023-10-09 12:46:43 +0100
  • 5ae5b84567 refactor Converter.WrapStatusable___() functions, only wrap status in create if NOT a question kim 2023-10-04 14:17:14 +0100
  • 1643c441e7 update some code in the federatingdb, update to handle question type kim 2023-10-03 16:30:11 +0100
  • 94d1945e04 migration to add new polls,poll_votes tables + add poll_id statuses column kim 2023-10-02 15:44:32 +0100
  • a4a02968c7 code formatting kim 2023-10-02 15:31:25 +0100