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-2.2.1 ostatus/app/controllers/remote_subjects_controller.rb
social_stream-2.2.0 ostatus/app/controllers/remote_subjects_controller.rb
social_stream-ostatus-2.2.0 app/controllers/remote_subjects_controller.rb
social_stream-2.1.1 ostatus/app/controllers/remote_subjects_controller.rb
social_stream-1.1.12 ostatus/app/controllers/remote_subjects_controller.rb
social_stream-2.1.0 ostatus/app/controllers/remote_subjects_controller.rb
social_stream-ostatus-2.1.0 app/controllers/remote_subjects_controller.rb
social_stream-2.0.4 ostatus/app/controllers/remote_subjects_controller.rb
social_stream-2.0.3 ostatus/app/controllers/remote_subjects_controller.rb
social_stream-1.1.11 ostatus/app/controllers/remote_subjects_controller.rb
social_stream-1.1.10 ostatus/app/controllers/remote_subjects_controller.rb
social_stream-1.1.9 ostatus/app/controllers/remote_subjects_controller.rb
social_stream-ostatus-1.1.1 app/controllers/remote_subjects_controller.rb
social_stream-1.1.8 ostatus/app/controllers/remote_subjects_controller.rb
social_stream-2.0.2 ostatus/app/controllers/remote_subjects_controller.rb
social_stream-2.0.1 ostatus/app/controllers/remote_subjects_controller.rb
social_stream-2.0.0 ostatus/app/controllers/remote_subjects_controller.rb
social_stream-ostatus-2.0.0 app/controllers/remote_subjects_controller.rb
social_stream-2.0.0.beta3 ostatus/app/controllers/remote_subjects_controller.rb
social_stream-ostatus-2.0.0.beta3 app/controllers/remote_subjects_controller.rb