GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Zło To 🏴‍☠️ (mattesilver@101010.pl)'s status on Sunday, 04-Jan-2026 20:26:22 JSTZło To 🏴‍☠️Zło To 🏴‍☠️
    in reply to
    • silverpill

    @silverpill

    ```
    #[post("/inbox")]
    async fn instance_actor_inbox(
    config: web::Data<Config>,
    activity: web::Json<JsonValue>,
    ) -> Result<HttpResponse, HttpError> {
    if !config.federation.enabled {
    return Err(HttpError::PermissionError);
    };
    log::info!(
    "received in instance inbox: {}",
    activity["type"].as_str().unwrap_or("Unknown"),
    );
    Ok(HttpResponse::Accepted().finish())
    }
    ```

    seems to me it works as intended...
    1. fail if federation is disabled
    2. log
    3. return 202

    In conversationabout 7 months ago from 101010.plpermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.