From eb9b0cc4282ca62f4601976d414f6d6835e70ad5 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 11 Nov 2024 14:11:59 +0200 Subject: [PATCH] dont sync emojis with site name in their names --- scripts/sync_emojis.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sync_emojis.sh b/scripts/sync_emojis.sh index 56b669996..1cdefd177 100755 --- a/scripts/sync_emojis.sh +++ b/scripts/sync_emojis.sh @@ -3,7 +3,7 @@ #generate seed-emojis-$SITE_NAME.sql EXPORT_EMOJIS=$(psql --csv --tuples-only -P "null=NULL" -c \ - "SELECT ''''||name||'''', ' '''||kind||'''', ' '||2, ' '''||tags||'''', ' '||nsfw||'', ' '||created_utc||'' FROM emojis WHERE submitter_id IS NULL and author_id != 2 and author_id != 1076771 ORDER BY name" \ + "SELECT ''''||name||'''', ' '''||kind||'''', ' '||2, ' '''||tags||'''', ' '||nsfw||'', ' '||created_utc||'' FROM emojis WHERE submitter_id IS NULL and author_id != 2 and author_id != 1076771 and name not ilike '%$SITE_NAME%' ORDER BY name" \ "$DATABASE_URL") EXPORT_EMOJIS=$(sed 's/.*/\(&\),/' <<< "$EXPORT_EMOJIS") echo "INSERT INTO public.emojis (name, kind, author_id, tags, nsfw, created_utc) VALUES" > "/d/seed-emojis-$SITE_NAME.sql"