Misskey 13.3.2 にアップデートした時のログ
アップデートしたら、プロフィール画像が media-proxy を通すようになって、それが常に404を返してしまっている。
https://gyazo.com/0a47130ee47597eb0f388929ccee0781
ねこみみだけが表示されている...こわ...
これを proxy を介すとコレ↓になるが、404になる。どうも Fastify のルーティングに無いアクセスになってしまう模様。
user テーブルから avatar カラムにある drive_file の id を取得する
取得した drive_file テーブル上にあるレコードの url または webpublicUrl を、”正しい” URL に修正する
自インスタンスからアップロードされた画像を取得するクエリ↓
select "id", "createdAt", "userId", "userHost", "name", "storedInternal", "url", "src" from drive_file where "url" ~ 'https\:\/\/media\.buicha\.social' and "src" is null;
code:select.sql
select u.username, u.host,
from public.user u
inner join drive_file d on u."avatarId" = d.id;
code:update.sql
update drive_file
from public.user
where public.user."avatarId" = drive_file.id;
絵文字でも同じような問題が起こってるっぽい。
code:select-emoji.sql
select name,
from emoji
where "publicUrl" ~ 'https\:\/\/buicha\.social\/';
code:update-emoji.sql
explain update emoji
set
where "publicUrl" ~ 'https\:\/\/buicha\.social\/';