mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-29 11:18:30 +00:00
add admin debug echo command
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
483f0a9c86
commit
1d1b1644e9
2 changed files with 15 additions and 1 deletions
|
@ -21,6 +21,12 @@ use tracing_subscriber::EnvFilter;
|
|||
|
||||
use crate::api::client::validate_and_add_event_id;
|
||||
|
||||
pub(crate) async fn echo(_body: Vec<&str>, message: Vec<String>) -> Result<RoomMessageEventContent> {
|
||||
let message = message.join(" ");
|
||||
|
||||
Ok(RoomMessageEventContent::notice_plain(message))
|
||||
}
|
||||
|
||||
pub(crate) async fn get_auth_chain(_body: Vec<&str>, event_id: Box<EventId>) -> Result<RoomMessageEventContent> {
|
||||
let event_id = Arc::<EventId>::from(event_id);
|
||||
if let Some(event) = services().rooms.timeline.get_pdu_json(&event_id)? {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue