about summary refs log tree commit diff
path: root/app/serializers
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-03-08 22:40:21 +0100
committerGitHub <noreply@github.com>2022-03-08 22:40:21 +0100
commit02133866e6915e37431298b396e1aded1e4c44c5 (patch)
tree4ec43c5d1269ef7d5a3816a4d000bb7129bf81bd /app/serializers
parentf03148f441d8dfc1856451c4faa00b5e26b6e199 (diff)
parent481f7c8c3850a5d38e92222ab14e5229c49c2812 (diff)
Merge pull request #1713 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/rest/familiar_followers_serializer.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/serializers/rest/familiar_followers_serializer.rb b/app/serializers/rest/familiar_followers_serializer.rb
new file mode 100644
index 000000000..0a7e923f8
--- /dev/null
+++ b/app/serializers/rest/familiar_followers_serializer.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+class REST::FamiliarFollowersSerializer < ActiveModel::Serializer
+  attribute :id
+
+  has_many :accounts, serializer: REST::AccountSerializer
+
+  def id
+    object.id.to_s
+  end
+end