diff options
author | ThibG <thib@sitedethib.com> | 2019-03-28 18:45:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-28 18:45:28 +0100 |
commit | fad29fd23052cdf3d51a6e0eb03557554572d402 (patch) | |
tree | 4ba415e02d601654867889da11391b509909635d /app/serializers | |
parent | bb316faffff7a76bc89f7e942233f0e14caf60f5 (diff) | |
parent | ce7d055d3cc7927a597c8bb56b45f8e0aae91319 (diff) |
Merge pull request #973 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/rest/identity_proof_serializer.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app/serializers/rest/identity_proof_serializer.rb b/app/serializers/rest/identity_proof_serializer.rb new file mode 100644 index 000000000..0e7415935 --- /dev/null +++ b/app/serializers/rest/identity_proof_serializer.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +class REST::IdentityProofSerializer < ActiveModel::Serializer + attributes :provider, :provider_username, :updated_at, :proof_url, :profile_url + + def proof_url + object.badge.proof_url + end + + def profile_url + object.badge.profile_url + end + + def provider + object.provider.capitalize + end +end |