~sen

Recent activity

[PATCH] Match http-origin against src.Hostname instead of self 2 days ago

From sentriz to ~emersion/soju-dev

it looks like for http-origin validation, path.Match() was matching a
pattern against itself. it looks to me like the validation should check
against srv.Hostname instead
---
 config/config.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/config.go b/config/config.go
index 1d9122f..c50c5fb 100644
--- a/config/config.go
+++ b/config/config.go
@@ -220,7 +220,7 @@ func Load(filename string) (*Server, error) {
		srv.FileUpload = &FileUpload{driver, source}
	}
[message trimmed]

[PATCH geo] button which doesn't do anything! 5 months ago

From sentriz to ~amk/public-inbox

---
 geoserv/web/index.html | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/geoserv/web/index.html b/geoserv/web/index.html
index 259fcd3..a94ea6a 100644
--- a/geoserv/web/index.html
+++ b/geoserv/web/index.html
@@ -1,9 +1,14 @@
<!DOCTYPE html>
<head>
  <script src='https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.js'></script>
  <link href='https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.css' rel='stylesheet' />
  <script src="https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.js"></script>
[message trimmed]

Re: [PATCH] database: use postgresQueryTimeout for PostgresDB StoreMessages 5 months ago

From Senan Kelly to ~emersion/soju-dev

there seems to be no functional difference anyway, since we have 

    const postgresQueryTimeout = 5 * time.Second
    const sqliteQueryTimeout = 5 * time.Second

[PATCH] database: use postgresQueryTimeout for PostgresDB StoreMessages 5 months ago

From sentriz to ~emersion/soju-dev

using the sqliteQueryTimeout means a `undefined: sqliteQueryTimeout`
when building with `-tags=nosqlite`

---
 database/postgres.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/database/postgres.go b/database/postgres.go
index 68672a6..ca6bf51 100644
--- a/database/postgres.go
+++ b/database/postgres.go
@@ -933,7 +933,7 @@ func (db *PostgresDB) StoreMessages(ctx context.Context, networkID int64, name s
		return nil, nil
	}
[message trimmed]

[PATCH] fix postgres/StoreNetwork positional arguments 1 year, 2 months ago

From sentriz to ~emersion/soju-dev

---
hi! when updating a network i was getting this error:

    [728] ERROR:  inconsistent types deduced for parameter $14 at character 290
    [728] DETAIL:  bytea versus boolean
    [728] STATEMENT:  
        UPDATE "Network"
        SET name = $2, addr = $3, nick = $4, username = $5, realname = $6, certfp = $7, pass = $8,
                connect_commands = $9, sasl_mechanism = $10, sasl_plain_username = $11,
                sasl_plain_password = $12, sasl_external_cert = $13, sasl_external_key = $14,
                auto_away = $14, enabled = $15
        WHERE id = $1

it looks like in the postgres StoreNetwork query we have arg $14 listed twice.
[message trimmed]

[PATCH] Store and recall last 5 messages per buffer with arrow keys 2 years ago

From sentriz to ~emersion/public-inbox

Hi! This patch let's you use the arrow keys up/down to recall the last
5 messages sent on a per-buffer basis. The lines are kept in a new localStorage
key. (I can also reuse one of the existing localStorage keys if you like)

A side-effect of this change (and actually lead to simpler implementation)
is that unsent message drafts are stored as well. Eg. you can start typing
a message a message to a user, then switch to a different buffer or even
reload gamja, then go back to the buffer and sent the message.

(this required that a `key` prop is passed to <Composer /> so that we get a
unique render per buffer, giving it a chance to fetch from localStorage again)

Thanks!
---
[message trimmed]

[PATCH] Hello 2 years ago

From sentriz to ~sircmpwn/email-test-drive

some extra
some extra
some extra
---
 billy-bob | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 billy-bob

diff --git a/billy-bob b/billy-bob
new file mode 100644
index 0000000..6d0ecfd
--- /dev/null
@@ -0,0 +1 @@
[message trimmed]

[PATCH] Add Dockerfile 3 years ago

From sentriz to ~migadu/alps-devel

example docker-compose:

```yml
alps:
  build: alps
  expose:
  - 80
  restart: unless-stopped
  command:
    - -theme
    - alps
    - imaps://imap.fastmail.com:993
    - smtps://smtp.fastmail.com:465
```
[message trimmed]