Follow requests send e-mail notifications, but are excluded from notifications API
Better initial state for unlisted/nsfw toggles
This commit is contained in:
parent
3689c119f0
commit
2146ac91a0
11 changed files with 48 additions and 12 deletions
|
@ -7,7 +7,7 @@ class Api::V1::NotificationsController < ApiController
|
|||
respond_to :json
|
||||
|
||||
def index
|
||||
@notifications = Notification.where(account: current_account).paginate_by_max_id(20, params[:max_id], params[:since_id])
|
||||
@notifications = Notification.where(account: current_account).browserable.paginate_by_max_id(20, params[:max_id], params[:since_id])
|
||||
@notifications = cache_collection(@notifications, Notification)
|
||||
statuses = @notifications.select { |n| !n.target_status.nil? }.map(&:target_status)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue