The code powering m.abunchtell.com https://m.abunchtell.com
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 

14 satır
404 B

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