summaryrefslogtreecommitdiffstats
path: root/server/src/apub/community.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/apub/community.rs')
-rw-r--r--server/src/apub/community.rs14
1 files changed, 1 insertions, 13 deletions
diff --git a/server/src/apub/community.rs b/server/src/apub/community.rs
index bc924492..1ba41da4 100644
--- a/server/src/apub/community.rs
+++ b/server/src/apub/community.rs
@@ -283,19 +283,7 @@ impl ActorType for Community {
Ok(
CommunityFollowerView::for_community(conn, self.id)?
.into_iter()
- // TODO eventually this will have to use the inbox or shared_inbox column, meaning that view
- // will have to change
- .map(|c| {
- // If the user is local, but the community isn't, get the community shared inbox
- // and vice versa
- if c.user_local && !c.community_local {
- get_shared_inbox(&c.community_actor_id)
- } else if !c.user_local && c.community_local {
- get_shared_inbox(&c.user_actor_id)
- } else {
- "".to_string()
- }
- })
+ .map(|c| get_shared_inbox(&c.user_actor_id))
.filter(|s| !s.is_empty())
.unique()
.collect(),