0
0
Fork 0

Allow boosting own private toots (#6157)

* Adjust policy to allow boosting own private toots

* Add ability to reblog private toots from dropdown menu
This commit is contained in:
ThibG 2018-04-17 23:35:45 +02:00 committed by Eugen Rochko
parent 11715454d0
commit e5dd385431
3 changed files with 9 additions and 1 deletions

View file

@ -16,7 +16,7 @@ class StatusPolicy < ApplicationPolicy
end
def reblog?
!direct? && !private? && show?
!direct? && (!private? || owned?) && show?
end
def destroy?