Skip to content

Commit

Permalink
hotfix: remove thumbnail from avatar wcif spec (#10084)
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnIckler authored Oct 16, 2024
1 parent 6463647 commit 30de3c6
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions app/models/user_avatar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -233,34 +233,17 @@ 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

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
Expand Down

0 comments on commit 30de3c6

Please sign in to comment.