# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
[[package]]
-name = "activitystreams-ext"
-version = "0.1.0"
-source = "git+https://yerbamate.dev/asonix/activitystreams-ext?branch=main#2799a4c606467a2f577e1f45f93c6828ec83cfdf"
+name = "activitystreams"
+version = "0.7.0-alpha.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e3490e8e9d7744aada19fb2fb4e2564f8c22fd080a3561093ac91ed7d10bfe78"
dependencies = [
- "activitystreams-new",
+ "chrono",
+ "mime",
"serde 1.0.114",
"serde_json",
+ "thiserror",
+ "url",
]
[[package]]
-name = "activitystreams-new"
-version = "0.1.0"
-source = "git+https://yerbamate.dev/asonix/activitystreams-new?branch=main#857d5167dfa13054dd0d21d3d54f8147eea0d546"
+name = "activitystreams-ext"
+version = "0.1.0-alpha.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bb8e19a0810cc25df3535061a08b7d8f8a734d309ea4411c57a9767e4a2ffa0e"
dependencies = [
- "chrono",
- "mime",
+ "activitystreams",
"serde 1.0.114",
"serde_json",
- "thiserror",
- "url",
]
[[package]]
name = "lemmy_server"
version = "0.0.1"
dependencies = [
+ "activitystreams",
"activitystreams-ext",
- "activitystreams-new",
"actix",
"actix-files",
"actix-rt",
diesel = "1.4.4"
diesel_migrations = "1.4.0"
dotenv = "0.15.0"
-activitystreams-new = { git = "https://yerbamate.dev/asonix/activitystreams-new", branch = "main" }
-activitystreams-ext = { git = "https://yerbamate.dev/asonix/activitystreams-ext", branch = "main" }
+activitystreams = "0.7.0-alpha.3"
+activitystreams-ext = "0.1.0-alpha.2"
bcrypt = "0.8.0"
chrono = { version = "0.4.7", features = ["serde"] }
serde_json = { version = "1.0.52", features = ["preserve_order"]}
DbPool,
LemmyError,
};
-use activitystreams_new::base::AnyBase;
+use activitystreams::base::AnyBase;
use actix_web::client::Client;
use lemmy_db::{community::Community, user::User_};
use lemmy_utils::{get_apub_protocol_string, settings::Settings};
DbPool,
LemmyError,
};
-use activitystreams_new::{
+use activitystreams::{
activity::{
kind::{CreateType, DeleteType, DislikeType, LikeType, RemoveType, UndoType, UpdateType},
Create,
DbPool,
LemmyError,
};
-use activitystreams_ext::Ext2;
-use activitystreams_new::{
+use activitystreams::{
activity::{
kind::{AcceptType, AnnounceType, DeleteType, LikeType, RemoveType, UndoType},
Accept,
prelude::*,
public,
};
+use activitystreams_ext::Ext2;
use actix_web::{body::Body, client::Client, web, HttpResponse};
use itertools::Itertools;
use lemmy_db::{
})
.await??;
- let mut collection = UnorderedCollection::new(vec![]);
+ let mut collection = UnorderedCollection::new();
collection
.set_context(context())
// TODO: this needs its own ID
}
let len = pages.len();
- let mut collection = OrderedCollection::new(pages);
+ let mut collection = OrderedCollection::new();
collection
+ .set_many_items(pages)
.set_context(context())
.set_id(community.get_outbox_url()?)
.set_total_items(len as u64);
use crate::LemmyError;
+use activitystreams::unparsed::UnparsedMutExt;
use activitystreams_ext::UnparsedExtension;
-use activitystreams_new::unparsed::UnparsedMutExt;
use diesel::PgConnection;
use lemmy_db::{category::Category, Crud};
use serde::{Deserialize, Serialize};
+use activitystreams::unparsed::UnparsedMutExt;
use activitystreams_ext::UnparsedExtension;
-use activitystreams_new::unparsed::UnparsedMutExt;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
use crate::{apub::ActorType, LemmyError};
+use activitystreams::unparsed::UnparsedMutExt;
use activitystreams_ext::UnparsedExtension;
-use activitystreams_new::unparsed::UnparsedMutExt;
use actix_web::{client::ClientRequest, HttpRequest};
use http_signature_normalization_actix::{
digest::{DigestClient, SignExt},
DbPool,
LemmyError,
};
-use activitystreams_new::{base::BaseExt, collection::OrderedCollection, object::Note, prelude::*};
+use activitystreams::{base::BaseExt, collection::OrderedCollection, object::Note, prelude::*};
use actix_web::client::Client;
use chrono::NaiveDateTime;
use diesel::{result::Error::NotFound, PgConnection};
// fetch outbox (maybe make this conditional)
let outbox =
fetch_remote_object::<OrderedCollection>(client, &community.get_outbox_url()?).await?;
- let outbox_items = outbox.items().clone();
+ let outbox_items = outbox.items().unwrap().clone();
for o in outbox_items.many().unwrap() {
let page = PageExt::from_any_base(o)?.unwrap();
let post = PostForm::from_apub(&page, client, pool).await?;
DbPool,
LemmyError,
};
-use activitystreams_new::{activity::*, base::AnyBase, prelude::ExtendsExt};
+use activitystreams::{activity::*, base::AnyBase, prelude::ExtendsExt};
use actix_web::{client::Client, HttpResponse};
pub async fn receive_announce(
DbPool,
LemmyError,
};
-use activitystreams_new::{activity::Create, base::AnyBase, object::Note, prelude::*};
+use activitystreams::{activity::Create, base::AnyBase, object::Note, prelude::*};
use actix_web::{client::Client, HttpResponse};
use lemmy_db::{
comment::{Comment, CommentForm},
DbPool,
LemmyError,
};
-use activitystreams_new::{activity::Delete, base::AnyBase, object::Note, prelude::*};
+use activitystreams::{activity::Delete, base::AnyBase, object::Note, prelude::*};
use actix_web::{client::Client, HttpResponse};
use lemmy_db::{
comment::{Comment, CommentForm},
DbPool,
LemmyError,
};
-use activitystreams_new::{activity::Dislike, base::AnyBase, object::Note, prelude::*};
+use activitystreams::{activity::Dislike, base::AnyBase, object::Note, prelude::*};
use actix_web::{client::Client, HttpResponse};
use lemmy_db::{
comment::{CommentForm, CommentLike, CommentLikeForm},
DbPool,
LemmyError,
};
-use activitystreams_new::{activity::Like, base::AnyBase, object::Note, prelude::*};
+use activitystreams::{activity::Like, base::AnyBase, object::Note, prelude::*};
use actix_web::{client::Client, HttpResponse};
use lemmy_db::{
comment::{CommentForm, CommentLike, CommentLikeForm},
DbPool,
LemmyError,
};
-use activitystreams_new::{activity::Remove, base::AnyBase, object::Note, prelude::*};
+use activitystreams::{activity::Remove, base::AnyBase, object::Note, prelude::*};
use actix_web::{client::Client, HttpResponse};
use lemmy_db::{
comment::{Comment, CommentForm},
DbPool,
LemmyError,
};
-use activitystreams_new::{activity::*, base::AnyBase, object::Note, prelude::*};
+use activitystreams::{activity::*, base::AnyBase, object::Note, prelude::*};
use actix_web::{client::Client, HttpResponse};
use lemmy_db::{
comment::{Comment, CommentForm, CommentLike, CommentLikeForm},
DbPool,
LemmyError,
};
-use activitystreams_new::{activity::Update, base::AnyBase, object::Note, prelude::*};
+use activitystreams::{activity::Update, base::AnyBase, object::Note, prelude::*};
use actix_web::{client::Client, HttpResponse};
use lemmy_db::{
comment::{Comment, CommentForm},
routes::{ChatServerParam, DbPoolParam},
LemmyError,
};
-use activitystreams_new::{
+use activitystreams::{
activity::{Follow, Undo},
prelude::*,
};
DbPool,
LemmyError,
};
-use activitystreams_new::{
+use activitystreams::{
activity::{ActorAndObject, ActorAndObjectRef},
base::{AsBase, Extends},
object::AsObject,
DbPool,
LemmyError,
};
-use activitystreams_new::{
+use activitystreams::{
activity::{Accept, Create, Delete, Undo, Update},
object::Note,
prelude::*,
DbPool,
LemmyError,
};
-use activitystreams_ext::{Ext1, Ext2};
-use activitystreams_new::{
+use activitystreams::{
activity::Follow,
actor::{ApActor, Group, Person},
object::{Page, Tombstone},
prelude::*,
};
+use activitystreams_ext::{Ext1, Ext2};
use actix_web::{body::Body, client::Client, HttpResponse};
use chrono::NaiveDateTime;
use failure::_core::fmt::Debug;
DbPool,
LemmyError,
};
-use activitystreams_ext::Ext1;
-use activitystreams_new::{
+use activitystreams::{
activity::{
kind::{CreateType, DeleteType, DislikeType, LikeType, RemoveType, UndoType, UpdateType},
Create,
prelude::*,
public,
};
+use activitystreams_ext::Ext1;
use actix_web::{body::Body, client::Client, web, HttpResponse};
use lemmy_db::{
community::Community,
DbPool,
LemmyError,
};
-use activitystreams_new::{
+use activitystreams::{
activity::{
kind::{CreateType, DeleteType, UndoType, UpdateType},
Create,
DbPool,
LemmyError,
};
-use activitystreams_ext::Ext1;
-use activitystreams_new::{
+use activitystreams::{
activity::{
kind::{FollowType, UndoType},
Follow,
object::{Image, Tombstone},
prelude::*,
};
+use activitystreams_ext::Ext1;
use actix_web::{body::Body, client::Client, web, HttpResponse};
use lemmy_db::{
naive_now,