From 30de3c6d82d100ebe026be6dfbf591645db97c19 Mon Sep 17 00:00:00 2001 From: FinnIckler Date: Wed, 16 Oct 2024 15:18:15 -0400 Subject: [PATCH] hotfix: remove thumbnail from avatar wcif spec (#10084) --- app/models/user_avatar.rb | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/app/models/user_avatar.rb b/app/models/user_avatar.rb index 0d5dd1f61d..98cddc7096 100644 --- a/app/models/user_avatar.rb +++ b/app/models/user_avatar.rb @@ -233,15 +233,8 @@ def register_status_timestamps def to_wcif { - "id" => self.id, "url" => self.url, "thumbUrl" => self.thumbnail_url, - "thumbnail" => { - "x" => self.thumbnail_crop_x, - "y" => self.thumbnail_crop_y, - "width" => self.thumbnail_crop_w, - "height" => self.thumbnail_crop_h, - }, } end @@ -249,18 +242,8 @@ def self.wcif_json_schema { "type" => ["object", "null"], "properties" => { - "id" => { "type" => "integer" }, "url" => { "type" => "string" }, "thumbUrl" => { "type" => "string" }, - "thumbnail" => { - "type" => "object", - "properties" => { - "x" => { "type" => "integer" }, - "y" => { "type" => "integer" }, - "width" => { "type" => "integer" }, - "height" => { "type" => "integer" }, - }, - }, }, } end