Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gab-social
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
gab
social
gab-social
Commits
e1fb44af
Commit
e1fb44af
authored
Sep 14, 2020
by
mgabdev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added new visibility in Status: private_group
• Added: - new visibility in Status: private_group
parent
4242f595
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
app/models/status.rb
app/models/status.rb
+9
-2
No files found.
app/models/status.rb
View file @
e1fb44af
...
...
@@ -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?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment