Reto Brunner
f068fd4290
sqlite: convert migrations to async
...
This removes quite a bunch of indention and callbacks
2022-11-01 22:23:47 +01:00
Reto Brunner
bbe81bb2fa
sqlite: add serialize_get
2022-11-01 22:23:47 +01:00
Reto Brunner
f04a06682d
extract migrations
2022-11-01 22:23:47 +01:00
Reto Brunner
5e1cbe32f9
sqlite: use serialize_fetchall in search
2022-11-01 22:23:47 +01:00
Reto Brunner
ee8223c200
sqlite: use serialize_fetchall in getMessages
2022-11-01 22:23:47 +01:00
Reto Brunner
cc3302e874
sqlite: create serialize_fetchall helper function
...
That puts all the serialization logic into one place and
allows us to use async / promises
2022-11-01 22:23:47 +01:00
Reto Brunner
89ee537364
sqlite: add run helper function
...
Extract the serialization logic into a single place and
consistently log errors to the console rather than a fire
and forget approach.
2022-11-01 22:23:30 +01:00
Reto Brunner
e62b169a6a
sqlite: fix docstring
2022-11-01 22:19:56 +01:00
Reto Brunner
f6b292107e
sqlite: move export to bottom of the file
...
This makes it easier to see what's getting exported, rather than
if it's interspersed randomly in the middle of the file
2022-11-01 22:19:56 +01:00
Reto Brunner
cebc6d069f
sqlite: error if sqlite isn't enabled but search() is called
...
When we assert that something can't possibly happen, we better
error out rather than jugging on with no error ;)
2022-11-01 22:19:56 +01:00
Antonio Mika
117c5fa3fd
Added client type checking to webpack ( #4619 )
...
* Added client type checking
* Fixed client-side typescript issues
2022-08-23 00:26:07 -07:00
Reto Brunner
621fa92036
linkPreviews: Enforce TLS validity
...
When a URL is prefixed with a TLS scheme, we should make sure
that the remote provides a valid cert, even just for prefetches.
Else MITM of such a site is trivial.
This probably breaks some people with self signed cert, but the
age where that was acceptable is past. We have free CAs now like
Let's Encrypt.
2022-08-06 12:37:51 +02:00
Reto
c8cd4057bc
Fix ctcp request message ( #4603 )
...
The message was ordered the wrong way in the TS rewrite.
Old:
+bookworm sent a CTCP request: "chadler" to version
New:
+bookworm sent a CTCP request: "version" to chadler
2022-07-06 22:28:18 -07:00
Max Leiter
dd05ee3a65
TypeScript and Vue 3 ( #4559 )
...
Co-authored-by: Eric Nemchik <eric@nemchik.com>
Co-authored-by: Pavel Djundik <xPaw@users.noreply.github.com>
2022-06-18 17:25:21 -07:00