Add "direct" visibility level in the backend. Web UI is not yet
adjusted to allow choosing it, yet
This commit is contained in:
parent
c1124228e8
commit
74ae158c2f
6 changed files with 32 additions and 15 deletions
|
@ -10,7 +10,7 @@ class ReblogService < BaseService
|
|||
def call(account, reblogged_status)
|
||||
reblogged_status = reblogged_status.reblog if reblogged_status.reblog?
|
||||
|
||||
raise Mastodon::NotPermittedError if reblogged_status.private_visibility? || !reblogged_status.permitted?(account)
|
||||
raise Mastodon::NotPermittedError if reblogged_status.direct_visibility? || reblogged_status.private_visibility? || !reblogged_status.permitted?(account)
|
||||
|
||||
reblog = account.statuses.create!(reblog: reblogged_status, text: '')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue