summaryrefslogtreecommitdiffstats
path: root/server/src/apub/mod.rs
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-04-28 00:16:02 -0400
committerDessalines <tyhou13@gmx.com>2020-04-28 00:16:02 -0400
commit3b62f58dd2ee8dc9e3d5fec15a48df052f164deb (patch)
treef27be37eac62da270fb3ff1d18bb2e7847acd1de /server/src/apub/mod.rs
parent6eaa06ab02a20c359b88a8c6a36ca3c668761825 (diff)
Adding federated post and comment likes.
Diffstat (limited to 'server/src/apub/mod.rs')
-rw-r--r--server/src/apub/mod.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/server/src/apub/mod.rs b/server/src/apub/mod.rs
index 4b51ca9f..14f3e798 100644
--- a/server/src/apub/mod.rs
+++ b/server/src/apub/mod.rs
@@ -42,16 +42,15 @@ use url::Url;
use crate::api::comment::CommentResponse;
use crate::api::post::PostResponse;
use crate::api::site::SearchResponse;
-use crate::db::activity;
-use crate::db::comment::{Comment, CommentForm};
+use crate::db::comment::{Comment, CommentForm, CommentLike, CommentLikeForm};
use crate::db::comment_view::CommentView;
use crate::db::community::{Community, CommunityFollower, CommunityFollowerForm, CommunityForm};
use crate::db::community_view::{CommunityFollowerView, CommunityView};
-use crate::db::post::{Post, PostForm};
+use crate::db::post::{Post, PostForm, PostLike, PostLikeForm};
use crate::db::post_view::PostView;
use crate::db::user::{UserForm, User_};
use crate::db::user_view::UserView;
-use crate::db::{Crud, Followable, SearchType};
+use crate::db::{activity, Crud, Followable, Likeable, SearchType};
use crate::routes::nodeinfo::{NodeInfo, NodeInfoWellKnown};
use crate::routes::{ChatServerParam, DbPoolParam};
use crate::websocket::{