From c7b321d5ad16f21599052fd9a2e9722c9624dc07 Mon Sep 17 00:00:00 2001 From: Darius Kazemi Date: Mon, 2 Jan 2023 14:08:45 -0800 Subject: [PATCH] Fix linter --- app/serializers/activitypub/note_serializer.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/serializers/activitypub/note_serializer.rb b/app/serializers/activitypub/note_serializer.rb index d6067feff..8662461e5 100644 --- a/app/serializers/activitypub/note_serializer.rb +++ b/app/serializers/activitypub/note_serializer.rb @@ -108,9 +108,7 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer object.account.sensitized? || object.sensitive end - def local_only - object.local_only - end + delegate :local_only, to: :object def virtual_attachments object.ordered_media_attachments