fix
This commit is contained in:
parent
fae86b9926
commit
056aee6d2f
2 changed files with 3 additions and 1 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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?;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue