Allow non-public posts to be pinned
This commit is contained in:
parent
d05c6e126b
commit
31fb709a7d
|
@ -20,7 +20,7 @@ class ActivityPub::Activity::Add < ActivityPub::Activity
|
|||
def add_featured
|
||||
status = status_from_object
|
||||
|
||||
return unless !status.nil? && status.account_id == @account.id && !@account.pinned?(status) && status.distributable?
|
||||
return unless !status.nil? && status.account_id == @account.id && !@account.pinned?(status)
|
||||
|
||||
StatusPin.create!(account: @account, status: status)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue