This commit is contained in:
Felix Ableitner 2025-07-09 15:06:01 +02:00
parent fae86b9926
commit 056aee6d2f
2 changed files with 3 additions and 1 deletions

View file

@ -5,6 +5,8 @@ use serde::{Deserialize, Serialize};
use url::Url; use url::Url;
/// Represents a local object that was deleted /// Represents a local object that was deleted
///
/// <https://www.w3.org/TR/activitystreams-vocabulary/#dfn-tombstone>
#[derive(Clone, Debug, Deserialize, Serialize)] #[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
pub struct Tombstone { pub struct Tombstone {

View file

@ -194,7 +194,7 @@ pub trait Object: Sized + Debug {
redirect_remote_object, redirect_remote_object,
}; };
let id = self.id(); let id = self.id();
let res = if data.config.is_local_url(id) { let res = if !data.config.is_local_url(id) {
redirect_remote_object(id) redirect_remote_object(id)
} else if !self.is_deleted() { } else if !self.is_deleted() {
let json = self.into_json(data).await?; let json = self.into_json(data).await?;