Sha256: 73c4f7cdd765f4f218c45308479a2e2fdcd83342a77041acfd67f4f9e6c6cd5e
Contents?: true
Size: 865 Bytes
Versions: 43
Compression:
Stored size: 865 Bytes
Contents
class PshbController < ApplicationController include SocialStream::Ostatus::Controllers::DebugRequests skip_before_filter :verify_authenticity_token def index case params['hub.mode'] #TODO check PuSH specification about subscribe or async when 'subscribe', 'async' render :text => params['hub.challenge'], :status => 200 # TODO: confirm that params['hub.topic'] is a real # requested subscription by someone in this node return when 'unsubscribe' render :text => params['hub.challenge'], :status => 200 # TODO: confirm that params['hub.topic'] is a real # requested unsubscription by someone in this node # and delete permissions/remote actor if necessary return end SocialStream::ActivityStreams.from_pshb_callback(request.body.read) render text: "Success!" end end
Version data entries
43 entries across 43 versions & 2 rubygems