diff options
Diffstat (limited to 'app/graphql/types/snippet_type.rb')
-rw-r--r-- | app/graphql/types/snippet_type.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/graphql/types/snippet_type.rb b/app/graphql/types/snippet_type.rb index 6e6d0edbe15..16f01979a43 100644 --- a/app/graphql/types/snippet_type.rb +++ b/app/graphql/types/snippet_type.rb @@ -45,6 +45,11 @@ module Types description: 'Visibility Level of the snippet.', null: false + field :hidden, GraphQL::Types::Boolean, + description: 'Indicates the snippet is hidden because the author has been banned.', + null: false, + method: :hidden_due_to_author_ban? + field :created_at, Types::TimeType, description: 'Timestamp this snippet was created.', null: false |