because aode relay blasts me of requests on that endpoint... aode you should limit how many fetches you do!!!!!!!!!!
22 lines
563 B
Rust
22 lines
563 B
Rust
use axum::{extract::State, Json};
|
|
|
|
use crate::server::Context;
|
|
|
|
|
|
pub async fn get(
|
|
State(ctx): State<Context>,
|
|
) -> crate::Result<Json<mastodon_async_entities::instance::Instance>> {
|
|
Ok(Json(mastodon_async_entities::instance::Instance {
|
|
uri: ctx.domain().to_string(),
|
|
title: "μpub".to_string(),
|
|
description: "micro social network, federated".to_string(),
|
|
email: "me@alemi.dev".to_string(),
|
|
version: crate::VERSION.to_string(),
|
|
urls: None,
|
|
stats: None,
|
|
thumbnail: None,
|
|
languages: None,
|
|
contact_account: None,
|
|
max_toot_chars: None,
|
|
}))
|
|
}
|