Sha256: 8d92bd2eace6ab340f2f53744e7c8d837a9d3cd1843db4abb0fb76b13a3f0664

Contents?: true

Size: 419 Bytes

Versions: 41

Compression:

Stored size: 419 Bytes

Contents

class RemoteSubjectsController < ApplicationController
  def index
    raise ActiveRecord::NotFound if params[:q].blank?

    @remote_subject =
      RemoteSubject.find_or_create_by_webfinger_uri!(params[:q])
      
    redirect_to @remote_subject
  end

  def show
    @remote_subject =
      RemoteSubject.find_by_slug!(params[:id])

    if params[:refresh]
      @remote_subject.refresh_webfinger!
    end
  end
end

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
social_stream-ostatus-0.1.0 app/controllers/remote_subjects_controller.rb