The code powering m.abunchtell.com https://m.abunchtell.com
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

15 lignes
402 B

  1. # frozen_string_literal: true
  2. class ActivityPub::Activity::Remove < ActivityPub::Activity
  3. def perform
  4. return unless @json['origin'].present? && value_or_id(@json['origin']) == @account.featured_collection_url
  5. status = status_from_uri(object_uri)
  6. return unless status.account_id == @account.id
  7. pin = StatusPin.find_by(account: @account, status: status)
  8. pin&.destroy!
  9. end
  10. end