diff options
Diffstat (limited to 'app/services/reblog_service.rb')
-rw-r--r-- | app/services/reblog_service.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/services/reblog_service.rb b/app/services/reblog_service.rb index a3636a283..ba24b1f9d 100644 --- a/app/services/reblog_service.rb +++ b/app/services/reblog_service.rb @@ -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) |