aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorrhenium <re4k@re4k.info>2013-05-18 22:39:54 +0900
committerrhenium <re4k@re4k.info>2013-05-18 22:39:54 +0900
commitf3124d6a6600b46ec1ae3b76573f796c2d4f3697 (patch)
treeaff4647661098657775716abb69646deabb44aa8 /app
parent08bf90fee8a4cdcaffef40fd59d3d737cc11074f (diff)
downloadaclog-f3124d6a6600b46ec1ae3b76573f796c2d4f3697.tar.gz
update about
Diffstat (limited to 'app')
-rw-r--r--app/controllers/tweets_controller.rb4
-rw-r--r--app/helpers/application_helper.rb1
-rw-r--r--app/views/about/about.html.haml42
-rw-r--r--app/views/tweets/_tweet.json.jbuilder13
4 files changed, 9 insertions, 51 deletions
diff --git a/app/controllers/tweets_controller.rb b/app/controllers/tweets_controller.rb
index c554dda..5e09476 100644
--- a/app/controllers/tweets_controller.rb
+++ b/app/controllers/tweets_controller.rb
@@ -142,10 +142,10 @@ class TweetsController < ApplicationController
end
if request.format == :json
- @user_limit = nil
- # old api
if params[:limit]
@user_limit = params[:limit].to_i
+ else
+ @user_limit = nil
end
end
end
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index bb4e881..8ef84e4 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1,6 +1,5 @@
module ApplicationHelper
def logged_in?; session[:user_id] && session[:account] end
- def include_user?; !!params[:include_user] end
def format_time(dt)
dt.to_time.localtime("+09:00").strftime("%Y-%m-%d %H:%M:%S")
diff --git a/app/views/about/about.html.haml b/app/views/about/about.html.haml
index 7347928..a15ce75 100644
--- a/app/views/about/about.html.haml
+++ b/app/views/about/about.html.haml
@@ -1,10 +1,12 @@
%p
- 私のアカウントが不当に Favstar から BAN されたので仕方なく代わりを作りました。
+ = link_to "Favstar", "http://favstar.fm/"
+ というサービスがあります。このサービスはとても便利なのですが、「ShootingStar というクライアントを使った」という理由で私のアカウントが BAN されてしまいました。
+ そのため代わりになるように作ったサービスです。
%p
= link_to "@KOBA789", "https://twitter.com/KOBA789"
- さんにサーバーを借りています。
+ さんにサーバーを借りています。ありがとうございます...!
%p
- そーすはこっち
+ The MIT License
= link_to "GitHub", "https://github.com/rhenium/aclog"
%p
使用しているもの
@@ -12,36 +14,6 @@
%li
読み込み中アニメーションGIF
%span= link_to "http://www.ajaxload.info/", "http://www.ajaxload.info/"
-%h3 各ページのURLについてメモ
-%dl
- %dt best
- %dd= link_to "/cn", "/cn"
- %dt timeline(Favstar の Recent に相当)
- %dd= link_to "/cn/timeline", "/cn/timeline"
-%dl
- %dt 全体のbest
- %dd= link_to "/i/best", "/i/best"
- %dt 全体の最新3日のbest
- %dd= link_to "/i/recent", "/i/recent"
- %dt 全体の最新反応あり
- %dd= link_to "/i/timeline", "/i/timeline"
%p
- Favstar のパスにアクセスされた場合リダイレクトするようになっているはず…
-/%h3 検索クエリ
-/%p 半角スペース区切りで、すべて AND 検索になります。OR 検索付けたいけどまだ使えません。
-/%p order 以外は先頭に - を付けることで否定になります。
-/%dl
-/ %dt ユーザーの
-/ %dd user:cn
-/ %dt 反応数 〜〜以上
-/ %dd reaction:30
-/ %dd favorite:30
-/ %dd retweet:30
-/ %dt 並び替え
-/ %dd order:old
-/ %dd order:reaction
-/ %dd order:favorite
-/ %dd order:retweet
-/ %dt 期間
-/ %dd 20130328..20130330
-/ %dt ツイート本文・クライアント名での検索はできません。クライアント名での検索は付けたいけれど…%p
+ Favstar のパスにアクセスされた場合リダイレクトするようになっているはずです
+
diff --git a/app/views/tweets/_tweet.json.jbuilder b/app/views/tweets/_tweet.json.jbuilder
index 901afeb..e7f2d88 100644
--- a/app/views/tweets/_tweet.json.jbuilder
+++ b/app/views/tweets/_tweet.json.jbuilder
@@ -5,16 +5,3 @@ json.user_id tweet.user_id
json.favoriters tweet.favorites.limit(@user_limit).pluck(:user_id)
json.retweeters tweet.retweets.limit(@user_limit).pluck(:user_id)
-if /^\/users\// =~ request.fullpath
- # deprecated API
- json.favorites do
- json.array! tweet.favorites.includes(:user).limit(@user_limit) do |item|
- json.(item, :user)
- end
- end
- json.retweets do
- json.array! tweet.retweets.includes(:user).limit(@user_limit) do |item|
- json.(item, :user)
- end
- end
-end