// Update the ap_id
let incorrect_posts = post
- .filter(ap_id.eq("http://changeme_%"))
+ .filter(ap_id.like("http://changeme_%"))
.filter(local.eq(true))
.load::<Post>(conn)?;
// Update the ap_id
let incorrect_comments = comment
- .filter(ap_id.eq("http://changeme_%"))
+ .filter(ap_id.like("http://changeme_%"))
.filter(local.eq(true))
.load::<Comment>(conn)?;
// Update the ap_id
let incorrect_pms = private_message
- .filter(ap_id.eq("http://changeme_%"))
+ .filter(ap_id.like("http://changeme_%"))
.filter(local.eq(true))
.load::<PrivateMessage>(conn)?;
{
use lemmy_db_schema::schema::user_::dsl::*;
let users = user_
- .filter(inbox_url.eq("http://changeme_%"))
+ .filter(inbox_url.like("http://changeme_%"))
.load::<User_>(conn)?;
for u in &users {
{
use lemmy_db_schema::schema::community::dsl::*;
let communities = community
- .filter(inbox_url.eq("http://changeme_%"))
+ .filter(inbox_url.like("http://changeme_%"))
.load::<Community>(conn)?;
for c in &communities {