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;
|
||||
|
||||
/// Represents a local object that was deleted
|
||||
///
|
||||
/// <https://www.w3.org/TR/activitystreams-vocabulary/#dfn-tombstone>
|
||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct Tombstone {
|
||||
|
|
|
|||
|
|
@ -194,7 +194,7 @@ pub trait Object: Sized + Debug {
|
|||
redirect_remote_object,
|
||||
};
|
||||
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)
|
||||
} else if !self.is_deleted() {
|
||||
let json = self.into_json(data).await?;
|
||||
|
|
|
|||
Loading…
Reference in a new issue