···7070curl --json '{"hostname": "https://pds.example.com"}' "https://bsky.network/xrpc/com.atproto.sync.requestCrawl"
7171```
72727373-Now we need to emit an `#identity` event (probably an `#account` event too but millipds doesn't do that yet!!!). This can be done by heading to your settings in `bsky.app` and "changing" your handle to the value it already is (e.g. `bob.example.com`) - this tells millipds to emit an `#identity` event. (I'll make this part more automatic in the future)
7373+Now we need to emit an `#identity` event. This can be done by heading to your settings in `bsky.app` and "changing" your handle to the value it already is (e.g. `bob.example.com`) - this tells millipds to emit an `#identity` event. (I'll make this part more automatic in the future) (Note: as a temp workaround, this will also generate an `#account` event, which is maybe-necessary. unsure! In the future this should be triggered by account creation itself, probably.)
74747575The relay should be paying attention now, but maybe not the appview. To make the appview start indexing your posts, I *think* you need to create a bluesky profile record first, which can be done by setting your display name and/or bio (e.g. from `bsky.app`).
7676
+20
src/millipds/service.py
···244244 (firehose_seq, 0, firehose_bytes) # TODO: put sensible timestamp here...
245245 )
246246 await atproto_repo.firehose_broadcast(request, (firehose_seq, firehose_bytes))
247247+248248+ # temp hack: #account events shouldn't really be generated here
249249+ with get_db(request).new_con() as con:
250250+ # TODO: refactor to avoid duplicated logic between here and apply_writes
251251+ firehose_seq = con.execute("SELECT IFNULL(MAX(seq), 0) + 1 FROM firehose").fetchone()[0]
252252+ firehose_bytes = cbrrr.encode_dag_cbor({
253253+ "t": "#account",
254254+ "op": 1
255255+ }) + cbrrr.encode_dag_cbor({
256256+ "seq": firehose_seq,
257257+ "did": request["authed_did"],
258258+ "time": util.iso_string_now(),
259259+ "active": True
260260+ })
261261+ con.execute(
262262+ "INSERT INTO firehose (seq, timestamp, msg) VALUES (?, ?, ?)",
263263+ (firehose_seq, 0, firehose_bytes) # TODO: put sensible timestamp here...
264264+ )
265265+ await atproto_repo.firehose_broadcast(request, (firehose_seq, firehose_bytes))
266266+247267 return web.Response()
248268249269