Martin Weinelt 2024-07-12 14:45:02 +02:00
parent 7bc73b0eb2
commit 4d75a540cb
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 3 additions and 29 deletions

View File

@ -7,16 +7,16 @@
}:
let
pname = "matrix-media-repo";
version = "1.3.4";
version = "1.3.6";
src = fetchFromGitHub {
owner = "t2bot";
repo = "matrix-media-repo";
rev = "v${version}";
hash = "sha256-wC69OiB3HjRs/i46+E1YS+M4zKmvH5vENHyfgU7nt1I=";
hash = "sha256-Yrw+6WKHm9Y31YvW5iXnUDhIg0TcSctaouIGhAN4iBo=";
};
vendorHash = "sha256-STzpKqn47qS0iogVYhFl4QBfKUtnqgxobqv1WaW6UtQ=";
vendorHash = "sha256-fKDdL7C3L33caoXxlutzoND2izB5GH+5qTeojTskIUg=";
asset-compiler = buildGoModule {
pname = "${pname}-compile_assets";
@ -31,10 +31,6 @@ in
buildGoModule {
inherit pname version src vendorHash;
patches = [
./synapse-import-u+x.patch
];
nativeBuildInputs = [
pkg-config
asset-compiler

View File

@ -1,22 +0,0 @@
diff --git a/cmd/homeserver_offline_exporters/import_to_synapse/main.go b/cmd/homeserver_offline_exporters/import_to_synapse/main.go
index 3c7db1e..c6cba4f 100644
--- a/cmd/homeserver_offline_exporters/import_to_synapse/main.go
+++ b/cmd/homeserver_offline_exporters/import_to_synapse/main.go
@@ -78,7 +78,7 @@ func main() {
ctx.Log.Infof("Copying %s", mxc)
directories := path.Join(cfg.ExportPath, "local_content", record.MediaId[0:2], record.MediaId[2:4])
- err = os.MkdirAll(directories, 0655)
+ err = os.MkdirAll(directories, 0755)
if err != nil {
return err
}
@@ -134,7 +134,7 @@ func main() {
dirLock.Lock()
defer dirLock.Unlock()
thumbDir := path.Join(cfg.ExportPath, "local_thumbnails", record.MediaId[0:2], record.MediaId[2:4], record.MediaId[4:])
- err = os.MkdirAll(thumbDir, 0655)
+ err = os.MkdirAll(thumbDir, 0755)
if err != nil {
ctx.Log.Warn("Error creating thumbnail directories. ", s, err)
return