about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.gitmodules8
-rw-r--r--Tests/LibMatrix.HomeserverEmulator/Services/MediaStore.cs24
2 files changed, 16 insertions, 16 deletions
diff --git a/.gitmodules b/.gitmodules
index f63fd49..838d197 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,12 +1,12 @@
 [submodule "ArcaneLibs"]
 	path = ArcaneLibs
-	url = git@github.com:TheArcaneBrony/ArcaneLibs.git
+	url = https://github.com/TheArcaneBrony/ArcaneLibs.git
 [submodule "ExampleBots/LibMatrix.ExampleBot"]
 	path = ExampleBots/LibMatrix.ExampleBot
-	url = https://cgit.rory.gay/matrix/LibMatrix.ExampleBot.git
+	url = https://cgit.rory.gay/matrix/bots/LibMatrix.ExampleBot.git
 [submodule "ExampleBots/ModerationBot"]
 	path = ExampleBots/ModerationBot
-	url = https://cgit.rory.gay/matrix/ModerationBot.git
+	url = https://cgit.rory.gay/matrix/bots/ModerationBot.git
 [submodule "ExampleBots/PluralContactBotPoC"]
 	path = ExampleBots/PluralContactBotPoC
-	url = https://cgit.rory.gay/matrix/PluralContactBotPoC.git
+	url = https://cgit.rory.gay/matrix/bots/PluralContactBotPoC.git
diff --git a/Tests/LibMatrix.HomeserverEmulator/Services/MediaStore.cs b/Tests/LibMatrix.HomeserverEmulator/Services/MediaStore.cs
index e34a731..e40af89 100644
--- a/Tests/LibMatrix.HomeserverEmulator/Services/MediaStore.cs
+++ b/Tests/LibMatrix.HomeserverEmulator/Services/MediaStore.cs
@@ -30,18 +30,18 @@ public class MediaStore {
             Console.WriteLine("Data storage is disabled, not loading rooms from disk");
     }
 
-    public async Task<object> UploadMedia(string userId, string mimeType, Stream stream, string? filename = null) {
-        var mediaId = $"mxc://{Guid.NewGuid().ToString()}";
-        var path = Path.Combine(_config.DataStoragePath, "media", mediaId);
-        if (!Directory.Exists(path)) Directory.CreateDirectory(path);
-        var file = Path.Combine(path, filename ?? "file");
-        await using var fs = File.Create(file);
-        await stream.CopyToAsync(fs);
-        index.Add(new() {
-            
-        });
-        return media;
-    }
+    // public async Task<object> UploadMedia(string userId, string mimeType, Stream stream, string? filename = null) {
+    //     var mediaId = $"mxc://{Guid.NewGuid().ToString()}";
+    //     var path = Path.Combine(_config.DataStoragePath, "media", mediaId);
+    //     if (!Directory.Exists(path)) Directory.CreateDirectory(path);
+    //     var file = Path.Combine(path, filename ?? "file");
+    //     await using var fs = File.Create(file);
+    //     await stream.CopyToAsync(fs);
+    //     index.Add(new() {
+    //         
+    //     });
+    //     return media;
+    // }
 
     public class MediaInfo { }
 }
\ No newline at end of file