revert d72cd96a3, 1948972a4
This commit is contained in:
parent
216ff755c9
commit
8b020cf47f
@ -12,14 +12,12 @@ class Api::V1::NotificationsController < Api::BaseController
|
|||||||
DEFAULT_NOTIFICATIONS_LIMIT = 20
|
DEFAULT_NOTIFICATIONS_LIMIT = 20
|
||||||
|
|
||||||
def index
|
def index
|
||||||
# @notifications = load_notifications
|
@notifications = load_notifications
|
||||||
@notifications = []
|
|
||||||
render json: @notifications, each_serializer: REST::NotificationSerializer, relationships: StatusRelationshipsPresenter.new(target_statuses_from_notifications, current_user&.account_id)
|
render json: @notifications, each_serializer: REST::NotificationSerializer, relationships: StatusRelationshipsPresenter.new(target_statuses_from_notifications, current_user&.account_id)
|
||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
# @notification = current_account.notifications.find(params[:id])
|
@notification = current_account.notifications.find(params[:id])
|
||||||
@notification = []
|
|
||||||
render json: @notification, serializer: REST::NotificationSerializer
|
render json: @notification, serializer: REST::NotificationSerializer
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -8,8 +8,7 @@ class Api::V1::Timelines::HomeController < Api::BaseController
|
|||||||
respond_to :json
|
respond_to :json
|
||||||
|
|
||||||
def show
|
def show
|
||||||
# @statuses = load_statuses
|
@statuses = load_statuses
|
||||||
@statuses = []
|
|
||||||
render json: @statuses,
|
render json: @statuses,
|
||||||
each_serializer: REST::StatusSerializer,
|
each_serializer: REST::StatusSerializer,
|
||||||
relationships: StatusRelationshipsPresenter.new(@statuses, current_user&.account_id),
|
relationships: StatusRelationshipsPresenter.new(@statuses, current_user&.account_id),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user