This commit is contained in:
mgabdev
2020-05-22 17:05:40 -04:00
parent 216ff755c9
commit 8b020cf47f
2 changed files with 3 additions and 6 deletions

View File

@@ -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