···113113114114 collection = case params[:collection]
115115 when 'likes' then user.likes
116116+ when 'pins' then user.pins
117117+ when 'quotes' then user.quotes
116118 when 'reposts' then user.reposts
117119 else return json_error('InvalidParameter', 'Invalid search collection')
118120 end
···125127 .after_cursor(params[:cursor])
126128 .limit(PAGE_LIMIT)
127129128128- post_uris = items.map(&:post).map(&:at_uri)
130130+ post_uris = case params[:collection]
131131+ when 'quotes'
132132+ items.map { |x| "at://#{user.did}/app.bsky.feed.post/#{x.rkey}" }
133133+ else
134134+ items.map(&:post).map(&:at_uri)
135135+ end
129136130137 json_response(posts: post_uris, cursor: items.last&.cursor)
131138 end