mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-16 09:24:00 +00:00
Rewrite community moderators collection
This commit is contained in:
parent
6792e376b4
commit
0af047dd83
1 changed files with 3 additions and 7 deletions
|
@ -6,12 +6,8 @@ use crate::{
|
||||||
objects::{person::ApubPerson, post::ApubPost},
|
objects::{person::ApubPerson, post::ApubPost},
|
||||||
};
|
};
|
||||||
use activitystreams::{
|
use activitystreams::{
|
||||||
base::AnyBase,
|
base::AnyBase, chrono::NaiveDateTime, collection::kind::OrderedCollectionType,
|
||||||
chrono::NaiveDateTime,
|
primitives::OneOrMany, url::Url,
|
||||||
collection::kind::OrderedCollectionType,
|
|
||||||
object::Tombstone,
|
|
||||||
primitives::OneOrMany,
|
|
||||||
url::Url,
|
|
||||||
};
|
};
|
||||||
use lemmy_api_common::blocking;
|
use lemmy_api_common::blocking;
|
||||||
use lemmy_apub_lib::{
|
use lemmy_apub_lib::{
|
||||||
|
@ -44,7 +40,7 @@ pub(crate) struct ApubCommunityOutbox(Vec<ApubPost>);
|
||||||
#[async_trait::async_trait(?Send)]
|
#[async_trait::async_trait(?Send)]
|
||||||
impl ApubObject for ApubCommunityOutbox {
|
impl ApubObject for ApubCommunityOutbox {
|
||||||
type DataType = CommunityContext;
|
type DataType = CommunityContext;
|
||||||
type TombstoneType = Tombstone;
|
type TombstoneType = ();
|
||||||
type ApubType = GroupOutbox;
|
type ApubType = GroupOutbox;
|
||||||
|
|
||||||
fn last_refreshed_at(&self) -> Option<NaiveDateTime> {
|
fn last_refreshed_at(&self) -> Option<NaiveDateTime> {
|
||||||
|
|
Loading…
Reference in a new issue