fix: process emojireacts as likes for now
This commit is contained in:
parent
d641924646
commit
79bc9c938b
2 changed files with 3 additions and 2 deletions
|
@ -37,7 +37,7 @@ sea-orm = { version = "0.12", features = ["macros", "sqlx-sqlite", "runtime-toki
|
||||||
reqwest = { version = "0.12", features = ["json"] }
|
reqwest = { version = "0.12", features = ["json"] }
|
||||||
axum = "0.7"
|
axum = "0.7"
|
||||||
tower-http = { version = "0.5", features = ["cors", "trace"] }
|
tower-http = { version = "0.5", features = ["cors", "trace"] }
|
||||||
apb = { path = "apb", features = ["unstructured", "orm", "activitypub-fe", "activitypub-counters"] }
|
apb = { path = "apb", features = ["unstructured", "orm", "activitypub-fe", "activitypub-counters", "litepub"] }
|
||||||
# nodeinfo = "0.0.2" # the version on crates.io doesn't re-export necessary types to build the struct!!!
|
# nodeinfo = "0.0.2" # the version on crates.io doesn't re-export necessary types to build the struct!!!
|
||||||
nodeinfo = { git = "https://codeberg.org/thefederationinfo/nodeinfo-rs", rev = "e865094804" }
|
nodeinfo = { git = "https://codeberg.org/thefederationinfo/nodeinfo-rs", rev = "e865094804" }
|
||||||
# migrations
|
# migrations
|
||||||
|
|
|
@ -73,8 +73,9 @@ pub async fn post(
|
||||||
Err(StatusCode::UNPROCESSABLE_ENTITY.into()) // won't ingest useless stuff
|
Err(StatusCode::UNPROCESSABLE_ENTITY.into()) // won't ingest useless stuff
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// TODO emojireacts are NOT likes, but let's process them like ones for now maybe?
|
||||||
|
ActivityType::Like | ActivityType::EmojiReact => Ok(ctx.like(server, activity).await?),
|
||||||
ActivityType::Create => Ok(ctx.create(server, activity).await?),
|
ActivityType::Create => Ok(ctx.create(server, activity).await?),
|
||||||
ActivityType::Like => Ok(ctx.like(server, activity).await?),
|
|
||||||
ActivityType::Follow => Ok(ctx.follow(server, activity).await?),
|
ActivityType::Follow => Ok(ctx.follow(server, activity).await?),
|
||||||
ActivityType::Announce => Ok(ctx.announce(server, activity).await?),
|
ActivityType::Announce => Ok(ctx.announce(server, activity).await?),
|
||||||
ActivityType::Accept(_) => Ok(ctx.accept(server, activity).await?),
|
ActivityType::Accept(_) => Ok(ctx.accept(server, activity).await?),
|
||||||
|
|
Loading…
Reference in a new issue