Skip to content
Extraits de code Groupes Projets
Valider af2d22f8 rédigé par unarist's avatar unarist Validation de Eugen Rochko
Parcourir les fichiers

Fallback from perform_via_activitypub on private posts (#4758)

Currently, private / direct posts via OStatus from AP compatible instance will be dropped due to failing to fetch AP version.

So this fallbacks to OStatus handling:

* when failed to fetch ActivityPub version
* when status is neither :public nor :unlisted
parent 9a5ae096
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -8,7 +8,11 @@ class OStatus::Activity::Creation < OStatus::Activity::Base
end
return [nil, false] if @account.suspended?
return perform_via_activitypub if activitypub_uri?
if activitypub_uri? && [:public, :unlisted].include?(visibility_scope)
result = perform_via_activitypub
return result if result.first.present?
end
Rails.logger.debug "Creating remote status #{id}"
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter