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 'lib/diaspora/fetcher/public.rb')
-rw-r--r--lib/diaspora/fetcher/public.rb12
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/diaspora/fetcher/public.rb b/lib/diaspora/fetcher/public.rb
index 70a159bf5..30bdac2f6 100644
--- a/lib/diaspora/fetcher/public.rb
+++ b/lib/diaspora/fetcher/public.rb
@@ -128,9 +128,8 @@ module Diaspora; module Fetcher; class Public
# @see check_existing
# @see check_author
# @see check_public
- # @see check_type
def validate post
- check_existing(post) && check_author(post) && check_public(post) && check_type(post)
+ check_existing(post) && check_author(post) && check_public(post)
end
# hopefully there is no post with the same guid somewhere already...
@@ -163,13 +162,4 @@ module Diaspora; module Fetcher; class Public
ispublic
end
-
- # see, if the type of the given post is something we can handle
- def check_type post
- type_ok = (post['post_type'] == "StatusMessage")
-
- logger.warn "the post (#{post['guid']}) has a type, which cannot be handled (#{post['post_type']})" unless type_ok
-
- type_ok
- end
end; end; end