community::{Community, CommunityFollower},
private_message::PrivateMessage,
user::User_,
+ ApubObject,
Followable,
};
use lemmy_structs::blocking;
) -> Result<CommunityOrPrivateMessage, LemmyError> {
let ap_id = apub_id.to_string();
let community = blocking(context.pool(), move |conn| {
- Community::read_from_actor_id(conn, &ap_id)
+ Community::read_from_apub_id(conn, &ap_id)
})
.await?;
if let Ok(c) = community {