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:
authorBenjamin Neff <benjamin@coding4coffee.ch>2015-06-30 05:23:57 +0300
committerJonne Haß <me@jhass.eu>2015-07-05 21:44:24 +0300
commitf45e053316b9f9c2cb5961e98971a620e5562693 (patch)
treee9cbf6e7c1deab39156f04a20d3620cc1090d8ab /app/helpers
parent540b8df1b81bab8d198afba0477583519601e20d (diff)
remove unused publics_helper
the Subscriber stuff was removed in 2010: f97218c005ca4e6a482d5b50f4701d0a9a19b700
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/publics_helper.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/app/helpers/publics_helper.rb b/app/helpers/publics_helper.rb
deleted file mode 100644
index b7a063a07..000000000
--- a/app/helpers/publics_helper.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-# Copyright (c) 2010-2011, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
-
-module PublicsHelper
- def subscribe(opts = {})
- subscriber = Subscriber.first(:url => opts[:callback], :topic => opts[:topic])
- subscriber ||= Subscriber.new(:url => opts[:callback], :topic => opts[:topic])
-
- if subscriber.save
- if opts[:verify] == 'sync'
- 204
- elsif opts[:verify] == 'async'
- 202
- end
- else
- 400
- end
- end
-
-end