Actually, we don't need to federate a Note

Mastodon supports Article, see https://github.com/tootsuite/mastodon/blob/63f097979990bf5ba9db848b8a253056bad781af/app/lib/activitypub/activity/create.rb#L191
This commit is contained in:
Bat
2018-05-03 22:36:59 +01:00
parent 0de7859ca8
commit d587d18cd4
2 changed files with 9 additions and 41 deletions
-4
View File
@@ -58,9 +58,5 @@ fn create(blog_name: String, data: Form<NewPostForm>, user: User, conn: DbConn)
let act = Create::new(&user, &post, &*conn);
broadcast(&*conn, &user, act, user.get_followers(&*conn));
let note_act = Create::new(&user, &PostNote { post: post }, &*conn);
broadcast(&*conn, &user, note_act, user.get_followers(&*conn));
Redirect::to(format!("/~/{}/{}", blog_name, slug).as_str())
}