Skip to content

Commit

Permalink
not acct
Browse files Browse the repository at this point in the history
  • Loading branch information
jtomchak committed Nov 3, 2023
1 parent c8a8395 commit 02afd0e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ class Api::V2::FollowRecommendationsGraphController < Api::BaseController
before_action :set_account

def show
handle = @account.acct
service = FollowRecommendationsService.new
recommendation_handles = service.call(handle: handle)
recommendation_handles = service.call(handle: @handle)
follows = Follow.where(account: @account).map { |f| f.target_account.acct }
recommendations = recommendation_handles
.reject { |recommendation| follows.include?(recommendation) }
Expand All @@ -31,6 +30,7 @@ def set_account

domain = nil if domain == Rails.configuration.x.local_domain
@account = Account.where(username: username, domain: domain).first
@handle = params[:acct]
end

def personalized?
Expand Down

0 comments on commit 02afd0e

Please sign in to comment.