fix(cli): dont filter by date coz unreliable...

This commit is contained in:
əlemi 2024-12-27 01:13:59 +01:00
parent ddb12cb6ea
commit a6494e8068
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -27,7 +27,7 @@ pub async fn fix_activities(ctx: upub::Context, likes: bool, announces: bool) ->
if let Some(like) = upub::model::like::Entity::find() if let Some(like) = upub::model::like::Entity::find()
.filter(upub::model::like::Column::Object.eq(internal_oid)) .filter(upub::model::like::Column::Object.eq(internal_oid))
.filter(upub::model::like::Column::Actor.eq(internal_uid)) .filter(upub::model::like::Column::Actor.eq(internal_uid))
.filter(upub::model::like::Column::Published.eq(activity.published)) // .filter(upub::model::like::Column::Published.eq(activity.published))
.one(ctx.db()) .one(ctx.db())
.await? .await?
{ {