objective categorical abstract machine language personal data server
65
fork

Configure Feed

Select the types of activity you want to include in your feed.

xrpc activateAccount

futurGH ef344e30 ba0f915d

+18
+3
bin/main.ml
··· 54 54 ; ( get 55 55 , "/xrpc/com.atproto.server.checkAccountStatus" 56 56 , Api.Server.CheckAccountStatus.handler ) 57 + ; ( post 58 + , "/xrpc/com.atproto.server.activateAccount" 59 + , Api.Server.ActivateAccount.handler ) 57 60 ; ( get 58 61 , "/xrpc/com.atproto.repo.listMissingBlobs" 59 62 , Api.Repo.ListMissingBlobs.handler )
+7
pegasus/lib/api/server/activateAccount.ml
··· 1 + let handler = 2 + Xrpc.handler ~auth:Bearer (fun ctx -> 3 + let did = Auth.get_authed_did_exn ctx.auth in 4 + let%lwt _ = Repository.load ~ensure_active:false did in 5 + let%lwt () = Data_store.activate_actor did ctx.db in 6 + let%lwt _ = Sequencer.sequence_account ctx.db ~did ~active:true () in 7 + Dream.empty `OK )
+8
pegasus/lib/data_store.ml
··· 55 55 record_out] 56 56 id 57 57 58 + let activate_actor = 59 + [%rapper 60 + execute 61 + {sql| UPDATE actors SET deactivated_at = NULL WHERE did = %string{did} 62 + |sql}] 63 + 58 64 let update_actor_handle = 59 65 [%rapper 60 66 execute ··· 192 198 193 199 let get_actor_by_identifier id conn = 194 200 Util.use_pool conn @@ Queries.get_actor_by_identifier ~id 201 + 202 + let activate_actor did conn = Util.use_pool conn @@ Queries.activate_actor ~did 195 203 196 204 let update_actor_handle ~did ~handle conn = 197 205 Util.use_pool conn @@ Queries.update_actor_handle ~did ~handle