add missing `account_media_status_ids` method to accounts controller (oooops~)

staging
multiple creatures 2019-05-21 00:01:07 -05:00
parent 06b8b09fca
commit 8534702269
1 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,10 @@ class AccountsController < ApplicationController
@account.statuses.not_local_only.where(visibility: [:public, :unlisted])
end
def account_media_status_ids
@account.media_attachments.attached.reorder(nil).select(:status_id).distinct
end
def hashtag_scope
tag = Tag.find_normalized(params[:tag])