summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bbd739a)
* Fixing generate unique changeme
* Fixing generate unique changeme 2
* Changing link to .invalid domain.
Co-authored-by: Nutomic <me@nutomic.com>
opentelemetry_url: "http://otel:4137"
# the domain name of your instance (eg "lemmy.ml")
opentelemetry_url: "http://otel:4137"
# the domain name of your instance (eg "lemmy.ml")
+ hostname: "mydomain.ml"
# address where lemmy should listen for incoming requests
bind: "0.0.0.0"
# port where lemmy should listen for incoming requests
# address where lemmy should listen for incoming requests
bind: "0.0.0.0"
# port where lemmy should listen for incoming requests
--- /dev/null
+create or replace function generate_unique_changeme()
+returns text language sql
+as $$
+ select 'http://changeme_' || string_agg (substr('abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz0123456789', ceil (random() * 62)::integer, 1), '')
+ from generate_series(1, 20)
+$$;
--- /dev/null
+create or replace function generate_unique_changeme()
+returns text language sql
+as $$
+ select 'http://changeme.invalid/' || substr(md5(random()::text), 0, 25);
+$$;
// Update the actor_id, private_key, and public_key, last_refreshed_at
let incorrect_persons = person
// Update the actor_id, private_key, and public_key, last_refreshed_at
let incorrect_persons = person
- .filter(actor_id.like("http://changeme_%"))
+ .filter(actor_id.like("http://changeme%"))
.filter(local.eq(true))
.load::<Person>(conn)?;
.filter(local.eq(true))
.load::<Person>(conn)?;
// Update the actor_id, private_key, and public_key, last_refreshed_at
let incorrect_communities = community
// Update the actor_id, private_key, and public_key, last_refreshed_at
let incorrect_communities = community
- .filter(actor_id.like("http://changeme_%"))
+ .filter(actor_id.like("http://changeme%"))
.filter(local.eq(true))
.load::<Community>(conn)?;
.filter(local.eq(true))
.load::<Community>(conn)?;
// Update the ap_id
let incorrect_posts = post
// Update the ap_id
let incorrect_posts = post
- .filter(ap_id.like("http://changeme_%"))
+ .filter(ap_id.like("http://changeme%"))
.filter(local.eq(true))
.load::<Post>(conn)?;
.filter(local.eq(true))
.load::<Post>(conn)?;
// Update the ap_id
let incorrect_comments = comment
// Update the ap_id
let incorrect_comments = comment
- .filter(ap_id.like("http://changeme_%"))
+ .filter(ap_id.like("http://changeme%"))
.filter(local.eq(true))
.load::<Comment>(conn)?;
.filter(local.eq(true))
.load::<Comment>(conn)?;
// Update the ap_id
let incorrect_pms = private_message
// Update the ap_id
let incorrect_pms = private_message
- .filter(ap_id.like("http://changeme_%"))
+ .filter(ap_id.like("http://changeme%"))
.filter(local.eq(true))
.load::<PrivateMessage>(conn)?;
.filter(local.eq(true))
.load::<PrivateMessage>(conn)?;
{
use lemmy_db_schema::schema::person::dsl::*;
let persons = person
{
use lemmy_db_schema::schema::person::dsl::*;
let persons = person
- .filter(inbox_url.like("http://changeme_%"))
+ .filter(inbox_url.like("http://changeme%"))
.load::<Person>(conn)?;
for p in &persons {
.load::<Person>(conn)?;
for p in &persons {
{
use lemmy_db_schema::schema::community::dsl::*;
let communities = community
{
use lemmy_db_schema::schema::community::dsl::*;
let communities = community
- .filter(inbox_url.like("http://changeme_%"))
+ .filter(inbox_url.like("http://changeme%"))
.load::<Community>(conn)?;
for c in &communities {
.load::<Community>(conn)?;
for c in &communities {