GNOME Fractal adapted to work with Thales Citadel (PKGBUILD for ArchLinux)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.2 KiB

1 year ago
From 86a8d98413e6d4c97629d3ccdcbd7d0f8de3c6bb Mon Sep 17 00:00:00 2001
From: Markus Koch <markus@notsyncing.net>
Date: Sat, 9 Jan 2021 16:39:57 +0100
Subject: [PATCH] Use AccessToken auth for media
---
src/r0/media/get_content.rs | 2 +-
src/r0/media/get_content_thumbnail.rs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/r0/media/get_content.rs b/src/r0/media/get_content.rs
index 9dd8464..5ae9125 100644
--- a/src/r0/media/get_content.rs
+++ b/src/r0/media/get_content.rs
@@ -10,7 +10,7 @@ ruma_api! {
name: "get_media_content",
path: "/_matrix/media/r0/download/:server_name/:media_id",
rate_limited: false,
- authentication: None,
+ authentication: AccessToken,
}
request: {
diff --git a/src/r0/media/get_content_thumbnail.rs b/src/r0/media/get_content_thumbnail.rs
index 06cd305..452683f 100644
--- a/src/r0/media/get_content_thumbnail.rs
+++ b/src/r0/media/get_content_thumbnail.rs
@@ -23,7 +23,7 @@ ruma_api! {
name: "get_content_thumbnail",
path: "/_matrix/media/r0/thumbnail/:server_name/:media_id",
rate_limited: true,
- authentication: None,
+ authentication: AccessToken,
}
request: {
--
2.30.0