openvibers/openvibe.community Commits

Unlist legacy avatar screenshot pastes (#347)

OP OpenVibers committed 3 days ago · 3296cb63c9 · 1 file, +8 −0

Changes

ddiff --git a/migrations/0029_unlist_legacy_avatar_upload_pastes.sql b/migrations/0029_unlist_legacy_avatar_upload_pastes.sql
nnew file mode 100644
iindex 0000000..388ad03
---- /dev/null
++++ b/migrations/0029_unlist_legacy_avatar_upload_pastes.sql
@@@ -0,0 +1,8 @@
++-- phase: expand
++-- The original Live avatar route did not store metadata.kind, so the first cleanup migration missed those rows.
++-- Preserve ownership and direct links while removing the old profile pictures from public paste lists.
++UPDATE pastes
++ SET visibility = 'unlisted', updated_at = ov_now()
++ WHERE type = 'screenshot'
++ AND title = 'Avatar upload'
++ AND visibility = 'public';