Add mentioned users by status view (#28)

* Wip

* Add mentioned users menu to status

* Add test code
This commit is contained in:
KMY(雪あすか) 2023-09-24 19:29:43 +09:00 committed by GitHub
parent 2c36bce711
commit e38eed8855
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 379 additions and 1 deletions

View file

@ -24,6 +24,10 @@ class StatusPolicy < ApplicationPolicy
end
end
def show_mentioned_users?
owned?
end
def reblog?
!requires_mention? && (!private? || owned?) && show? && !blocking_author?
end