Commit 20edc227 authored by mgabdev's avatar mgabdev

revert 3214ad5d

removing home group timeline
parent 2e980543
......@@ -21,10 +21,6 @@ class Api::V1::Groups::AccountsController < Api::BaseController
@group.accounts << current_account
if current_user.allows_group_in_home_feed?
current_user.force_regeneration!
end
render json: @group, serializer: REST::GroupRelationshipSerializer, relationships: relationships
end
......@@ -41,10 +37,6 @@ class Api::V1::Groups::AccountsController < Api::BaseController
GroupAccount.where(group: @group, account_id: current_account.id).destroy_all
if current_user.allows_group_in_home_feed?
current_user.force_regeneration!
end
render json: @group, serializer: REST::GroupRelationshipSerializer, relationships: relationships
end
......
......@@ -9,7 +9,6 @@ class Settings::PreferencesController < Settings::BaseController
def update
user_settings.update(user_settings_params.to_h)
current_user.force_regeneration!
if current_user.update(user_params)
I18n.locale = current_user.locale
......
......@@ -212,10 +212,6 @@ class User < ApplicationRecord
def shows_application?
@shows_application ||= settings.show_application
end
def allows_group_in_home_feed?
settings.group_in_home_feed
end
def token_for_app(a)
return nil if a.nil? || a.owner != self
......@@ -274,10 +270,6 @@ class User < ApplicationRecord
setting_display_media == 'hide_all'
end
def force_regeneration!
Redis.current.set("account:#{account_id}:regeneration", true)
end
protected
def send_devise_notification(notification, *args)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment