summaryrefslogtreecommitdiffstats
path: root/server/src/apub/community.rs
diff options
context:
space:
mode:
authorFelix <me@nutomic.com>2020-05-06 19:10:36 +0200
committerFelix Ableitner <me@nutomic.com>2020-05-28 13:15:51 +0200
commit5753c4feaa93c6a6bfa0f0cf5a87ba756d559ce0 (patch)
treeaffdff54bae913ece5f30a598aa2cb96c27020af /server/src/apub/community.rs
parentb08574fd574f3bede9d6939fbd1dce157175d6c3 (diff)
Let community announce posts
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(),