Commit 8b020cf4 authored by mgabdev's avatar mgabdev

revert d72cd96a, 1948972a

parent 216ff755
......@@ -12,14 +12,12 @@ class Api::V1::NotificationsController < Api::BaseController
DEFAULT_NOTIFICATIONS_LIMIT = 20
def index
# @notifications = load_notifications
@notifications = []
@notifications = load_notifications
render json: @notifications, each_serializer: REST::NotificationSerializer, relationships: StatusRelationshipsPresenter.new(target_statuses_from_notifications, current_user&.account_id)
end
def show
# @notification = current_account.notifications.find(params[:id])
@notification = []
@notification = current_account.notifications.find(params[:id])
render json: @notification, serializer: REST::NotificationSerializer
end
......
......@@ -8,8 +8,7 @@ class Api::V1::Timelines::HomeController < Api::BaseController
respond_to :json
def show
# @statuses = load_statuses
@statuses = []
@statuses = load_statuses
render json: @statuses,
each_serializer: REST::StatusSerializer,
relationships: StatusRelationshipsPresenter.new(@statuses, current_user&.account_id),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment