- fn last_refreshed_at(&self) -> Option<NaiveDateTime> {
- None
- }
-
- #[tracing::instrument(skip_all)]
- async fn read_from_apub_id(
- _object_id: Url,
- data: &Self::DataType,
- ) -> Result<Option<Self>, LemmyError> {
- // Only read from database if its a local community, otherwise fetch over http
- if data.0.local {
- let cid = data.0.id;
- let moderators = CommunityModeratorView::for_community(data.1.pool(), cid).await?;
- Ok(Some(ApubCommunityModerators(moderators)))
- } else {
- Ok(None)
- }
- }
-