From 5d1b6dfb2b2e6f727c73120f6909c183304f3dd2 Mon Sep 17 00:00:00 2001 From: posimai Date: Wed, 22 Apr 2026 12:54:24 +0900 Subject: [PATCH] =?UTF-8?q?fix(together):=20CASE=E6=96=87=E3=81=AE?= =?UTF-8?q?=E5=9E=8B=E3=82=AD=E3=83=A3=E3=82=B9=E3=83=88=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E3=81=A7=E3=82=A2=E3=83=BC=E3=82=AB=E3=82=A4=E3=83=96SQL?= =?UTF-8?q?=E4=BF=AE=E5=BE=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index 289fa3d3..a2314a68 100644 --- a/server.js +++ b/server.js @@ -2637,8 +2637,8 @@ ${excerpt} `UPDATE together_shares SET full_content=$1, title=CASE - WHEN title IS NULL THEN $2 - WHEN $2 IS NOT NULL AND title = (regexp_replace($3, '^https?://(www\.)?', ''))::text THEN $2 + WHEN title IS NULL THEN $2::text + WHEN $2::text IS NOT NULL AND title = regexp_replace($3::text, '^https?://(www\.)?([^/]+).*$', '\2') THEN $2::text ELSE title END WHERE id=$4`,