Commit e1fb44af authored by mgabdev's avatar mgabdev

Added new visibility in Status: private_group

• Added:
- new visibility in Status: private_group
parent 4242f595
......@@ -44,7 +44,14 @@ class Status < ApplicationRecord
update_index('statuses#status', :proper) if Chewy.enabled?
enum visibility: [:public, :unlisted, :private, :direct, :limited], _suffix: :visibility
enum visibility: [
:public,
:unlisted,
:private,
:direct,
:limited,
:private_group,
], _suffix: :visibility
belongs_to :application, class_name: 'Doorkeeper::Application', optional: true
......@@ -215,7 +222,7 @@ class Status < ApplicationRecord
end
def hidden?
private_visibility? || direct_visibility? || limited_visibility?
private_visibility? || private_group_visibility? || direct_visibility? || limited_visibility?
end
def distributable?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment