about summary refs log tree commit diff
path: root/app/policies
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-04-17 23:35:45 +0200
committerEugen Rochko <eugen@zeonfederated.com>2018-04-17 23:35:45 +0200
commite5dd385431d8a3c35ceb3fd9d76fb0549c720f35 (patch)
treef874b61186f40476e54d62380db4fa51e6457381 /app/policies
parent11715454d033784bf6176b75a954e5c28b5d79e5 (diff)
Allow boosting own private toots (#6157)
* Adjust policy to allow boosting own private toots

* Add ability to reblog private toots from dropdown menu
Diffstat (limited to 'app/policies')
-rw-r--r--app/policies/status_policy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/policies/status_policy.rb b/app/policies/status_policy.rb
index 0373fdf04..5573289b6 100644
--- a/app/policies/status_policy.rb
+++ b/app/policies/status_policy.rb
@@ -16,7 +16,7 @@ class StatusPolicy < ApplicationPolicy
   end
 
   def reblog?
-    !direct? && !private? && show?
+    !direct? && (!private? || owned?) && show?
   end
 
   def destroy?