This commit is contained in:
parent
8902e265b4
commit
b87eb8ea14
2 changed files with 8 additions and 0 deletions
|
@ -13,6 +13,10 @@ class ReblogService < BaseService
|
|||
|
||||
authorize_with account, reblogged_status, :reblog?
|
||||
|
||||
reblog = account.statuses.find_by(reblog: reblogged_status)
|
||||
|
||||
return reblog unless reblog.nil?
|
||||
|
||||
reblog = account.statuses.create!(reblog: reblogged_status, text: '')
|
||||
|
||||
DistributionWorker.perform_async(reblog.id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue