Merge branch 'requested_messages_unnecessary_queries' into 'develop'

Remove unnecessary queries from requested conversations count

See merge request gab/social/gab-social!50
This commit is contained in:
Free Speech Forever 2021-01-29 05:09:04 +00:00
commit 75d041af77

View File

@ -4,7 +4,7 @@ class Api::V1::ChatConversations::RequestedConversationsController < Api::BaseCo
before_action -> { authorize_if_got_token! :read, :'read:chats' } before_action -> { authorize_if_got_token! :read, :'read:chats' }
before_action :require_user! before_action :require_user!
after_action :insert_pagination_headers after_action :insert_pagination_headers, only: :index
def index def index
@chat_conversations = load_chat_conversations @chat_conversations = load_chat_conversations