Do not show "limited" visibility in default visibility preference (#8999)
* Do not show "limited" visibility in default visibility preference Fix regression from #8950 * Fix code style issue
This commit is contained in:
parent
ddd30f331c
commit
72d7d3003b
2 changed files with 5 additions and 1 deletions
|
@ -238,6 +238,10 @@ class Status < ApplicationRecord
|
|||
left_outer_joins(:status_stat).select('statuses.id, greatest(statuses.updated_at, status_stats.updated_at) AS updated_at')
|
||||
end
|
||||
|
||||
def selectable_visibilities
|
||||
visibilities.keys - %w(direct limited)
|
||||
end
|
||||
|
||||
def in_chosen_languages(account)
|
||||
where(language: nil).or where(language: account.chosen_languages)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue