Explorar el Código

Fix #5272 - Order of checks in ActivityPub handler (#5276)

master
Eugen Rochko hace 6 años
committed by GitHub
padre
commit
3888a12c79
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      app/services/activitypub/fetch_remote_status_service.rb

+ 1
- 1
app/services/activitypub/fetch_remote_status_service.rb Ver fichero

@@ -11,7 +11,7 @@ class ActivityPub::FetchRemoteStatusService < BaseService
body_to_json(prefetched_body)
end

return unless expected_type? && supported_context?
return unless supported_context? && expected_type?

return if actor_id.nil? || !trustworthy_attribution?(@json['id'], actor_id)



Cargando…
Cancelar
Guardar