Skip to content

Commit

Permalink
set personal reset method
Browse files Browse the repository at this point in the history
  • Loading branch information
jtomchak committed Nov 1, 2023
1 parent c6f74bd commit 28ece11
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/lib/mammoth/status_origin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def reset(acct)
return nil unless username && domain

list_key = key("#{username}@#{domain}")
Rails.logger.info "DELETEING KEY>>>>>> \n\n\n\n #{list_key}"
redis.keys("#{list_key}*").each { |key| redis.del(key) }
end

Expand Down
2 changes: 1 addition & 1 deletion app/lib/personal_for_you.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def mammoth_channels
def reset(username)
reset_feed(username)
StatusOrigin.instance.reset(username)
end
end

# Remove personal timeline this will remove all entries in user's personal for you feed
# Current behavior is to default to 'public' mammoth curated feed if user's personal feed is blank 8/16/2023
Expand Down
2 changes: 1 addition & 1 deletion app/workers/update_for_you_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def perform(opts)
end

# If rebuild is true, Zero Out User's for you feed
@personal.reset_feed(@user[:acct]) if opts['rebuild']
@personal.reset(@user[:acct]) if opts['rebuild']

@statuses = filter_statuses!

Expand Down

0 comments on commit 28ece11

Please sign in to comment.