diff --git a/app/controllers/reposts_controller.rb b/app/controllers/reposts_controller.rb index 95847d9..faa22e5 100644 --- a/app/controllers/reposts_controller.rb +++ b/app/controllers/reposts_controller.rb @@ -1,3 +1,4 @@ +require 'erb' # for url_encode() require 'net/http' require 'uri' @@ -35,7 +36,6 @@ class RepostsController < ApplicationController #history = YAML.load('history.yml', :safe => true) #lastrepostid = history["lastrepost"] #latestid = lastrepostid - # fetch all mentions since last one ## API - fetch( since_id=previous max_id ) #new_mentions.each do | post | @@ -45,5 +45,6 @@ class RepostsController < ApplicationController # store latest repost for next time # TODO insert into reposts values("karlsruher", post.id, latestid) + redirect_to ERB::Util.url_encode("https://account.app.net/oauth/authenticate?client_id=aeTtXn6khX4XwvqHYH4J3xzzjDQmW5TJ&response_type=code&redirect_uri=https://alpha.app.net/karlsruher&scope=stream") end end