Sha256: 46a74a091656900667b091b0b560d1b4cb5c7b0daa6ca5155d2d3a90ca50887e

Contents?: true

Size: 365 Bytes

Versions: 43

Compression:

Stored size: 365 Bytes

Contents

class SalmonController < ApplicationController
  include SocialStream::Ostatus::Controllers::DebugRequests

  skip_before_filter :verify_authenticity_token

  def index
    actor = Actor.find_by_slug! params[:slug]

    SocialStream::ActivityStreams.from_salmon_callback request.body.read, actor

    # TODO handle errors
    
    render text: "Success!"
  end
end

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
social_stream-ostatus-0.2.0 app/controllers/salmon_controller.rb
social_stream-0.29.0 ostatus/app/controllers/salmon_controller.rb
social_stream-ostatus-0.1.0 app/controllers/salmon_controller.rb