From 1e59795ff4ccc754a76025921ea60107964f5a8c Mon Sep 17 00:00:00 2001 From: heddxh Date: Fri, 11 Apr 2025 18:41:50 +0800 Subject: [PATCH 1/3] [docs] add instruction about postgres permission (#3981) --- docs/configuration/database.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/configuration/database.md b/docs/configuration/database.md index f5be85164..4179f846d 100644 --- a/docs/configuration/database.md +++ b/docs/configuration/database.md @@ -42,6 +42,13 @@ create user gotosocial with password 'some_really_good_password'; grant all privileges on database gotosocial to gotosocial; ``` +If you start using Postgres after 14, or you encounter `error executing command: error creating dbservice: db migration error: ERROR: permission denied for schema public`, you should grant `CREATE` permission to your db user: + +```psql +GRANT CREATE ON SCHEMA public TO gotosocial; +SELECT has_schema_privilege('gotosocial', 'public', 'CREATE'); -- should return t +``` + GoToSocial makes use of ULIDs (Universally Unique Lexicographically Sortable Identifiers) which will not work in non-English collate environments. For this reason it is important to create the database with `C.UTF-8` locale. To do that on systems which were already initialized with non-C locale, `template0` pristine database template must be used. If you want to use specific options when connecting to Postgres, you can use `db-postgres-connection-string` to define the connection string. If `db-postgres-connection-string` is defined, all other database related configuration fields will be ignored. For example, we can use `db-postgres-connection-string` to connect to `mySchema`, where the user name is `myUser` and password is `myPass` at `localhost` with the database name of `db`: From b51aa23458e52d9abfc50a40223ffa22ee372c17 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Fri, 11 Apr 2025 12:42:18 +0200 Subject: [PATCH 2/3] [docs] add a command to know if the system is compatible with the standard builds (#3980) --- docs/advanced/builds/nowasm.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/advanced/builds/nowasm.md b/docs/advanced/builds/nowasm.md index b89a8e22b..b2aa07acd 100644 --- a/docs/advanced/builds/nowasm.md +++ b/docs/advanced/builds/nowasm.md @@ -15,6 +15,10 @@ However! To enable folks to run **experimental, unsupported deployments of GoToS A GoToSocial binary built with `nowasm` will use the [modernc version of SQLite](https://pkg.go.dev/modernc.org/sqlite) instead of the WASM one, and will use on-system `ffmpeg` and `ffprobe` binaries for media processing. +!!! tip + To test if your system is compatible with the standard builds, you can use this command: + `if grep -qE '^flags.* (sse4|LSE)' /proc/cpuinfo; then echo "Your system is supporting GTS!"; else echo "Your system is not supporting GTS, you'll have to use the 'nowasm' builds :("; fi` + To build GoToSocial with the `nowasm` tag, you can pass the tag into our convenience `build.sh` script like so: ```bash From eb4114bf1281e41b8ad8f560b7a28a3b7aeb3efc Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 11 Apr 2025 15:50:14 +0200 Subject: [PATCH 3/3] [chore] Fix header insets (#3987) --- web/source/css/_profile-header.css | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/web/source/css/_profile-header.css b/web/source/css/_profile-header.css index 3b14edab8..ff61b1004 100644 --- a/web/source/css/_profile-header.css +++ b/web/source/css/_profile-header.css @@ -20,6 +20,8 @@ .profile .profile-header { background: $profile-bg; border-radius: $br; + margin-bottom: 1rem; + padding-bottom: 1rem; /* Link to open media in slide @@ -69,6 +71,7 @@ .basic-info { position: relative; display: grid; + gap: 0 1rem; box-sizing: border-box; grid-template-columns: $avatar-size auto 1fr; grid-template-rows: $overlap $name-size auto; @@ -77,10 +80,12 @@ "avatar namerole namerole" "avatar namerole namerole"; - margin: 1rem; - margin-top: calc(-1 * $overlap); - gap: 0 1rem; - padding-bottom: 1rem; + /* + Margin top to inset profile pic into + header image, margin sides to inset + basic info from header wrapper. + */ + margin: calc(-1 * $overlap) 1rem 0 1rem; .avatar-image-wrapper { grid-area: avatar;