Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/base.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/workers/base.rb b/app/workers/base.rb
index 7fb53f548..bb8315e50 100644
--- a/app/workers/base.rb
+++ b/app/workers/base.rb
@@ -14,7 +14,10 @@ module Workers
rescue Diaspora::ContactRequiredUnlessRequest,
Diaspora::RelayableObjectWithoutParent,
# Friendica seems to provoke these
- Diaspora::AuthorXMLAuthorMismatch => e
+ Diaspora::AuthorXMLAuthorMismatch,
+ # We received a private object to our public endpoint, again something
+ # Friendica seems to provoke
+ Diaspora::NonPublic => e
Rails.logger.info("error on receive: #{e.class}")
rescue ActiveRecord::RecordInvalid => e
Rails.logger.info("failed to save received object: #{e.record.errors.full_messages}")