From c6753e9fc4a1b8ca979274aadd816468ccdd1682 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sat, 13 Apr 2024 17:11:01 -0400 Subject: [PATCH] Don't open shell as postgres user then open psql console but do it in one command --- content/posts/find-deleted-matrix-messages.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/content/posts/find-deleted-matrix-messages.md b/content/posts/find-deleted-matrix-messages.md index a5e6c07..03b3ec9 100644 --- a/content/posts/find-deleted-matrix-messages.md +++ b/content/posts/find-deleted-matrix-messages.md @@ -17,8 +17,7 @@ If you ever get tired of ghost pings or trolls quickly deleting their Matrix mes First, open up a PostgreSQL console for your Synapse database. On Arch Linux, you can do that like this: ``` -sudo -iu postgres -PAGER=less psql -d synapse +sudo -u postgres PAGER=less psql -d synapse ``` Now go into your Matrix client and find the internal room ID for the room where the message was deleted. In Element, you can find this in the Advanced tab of the room settings. The room ID should look something like `!GtIfdsfQtQIgbQSxwJ:archlinux.org` (in this case, the infamous [Arch Linux room](https://matrix.to/#/#archlinux:archlinux.org)).