闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
382 B

  1. # frozen_string_literal: true
  2. class Ostatus::Activity::Deletion < Ostatus::Activity::Base
  3. def perform
  4. Rails.logger.debug "Deleting remote status #{id}"
  5. status = Status.find_by(uri: id, account: @account)
  6. if status.nil?
  7. redis.setex("delete_upon_arrival:#{@account.id}:#{id}", 6 * 3_600, id)
  8. else
  9. RemoveStatusService.new.call(status)
  10. end
  11. end
  12. end