Add disable reaction streaming
This commit is contained in:
parent
90b9f8100e
commit
fbec5236d9
10 changed files with 14 additions and 2 deletions
|
@ -76,6 +76,7 @@ class Settings::PreferencesController < Settings::BaseController
|
|||
:setting_enable_local_timeline,
|
||||
:setting_enable_reaction,
|
||||
:setting_compact_reaction,
|
||||
:setting_disable_reaction_streaming,
|
||||
:setting_show_reply_tree_button,
|
||||
:setting_hide_statuses_count,
|
||||
:setting_hide_following_count,
|
||||
|
|
|
@ -49,6 +49,7 @@ export const enableFederatedTimeline = getMeta('enable_federated_timeline') ?? t
|
|||
export const enableLocalTimeline = getMeta('enable_local_timeline') ?? true;
|
||||
export const enableReaction = getMeta('enable_reaction');
|
||||
export const compactReaction = getMeta('compact_reaction');
|
||||
export const disableReactionStreaming = getMeta('disable_reaction_streaming');
|
||||
export const show_reply_tree_button = getMeta('show_reply_tree_button');
|
||||
export const disable_joke_appearance = getMeta('disable_joke_appearance');
|
||||
export const new_features_policy = getMeta('new_features_policy');
|
||||
|
|
|
@ -70,6 +70,7 @@ class UserSettingsDecorator
|
|||
enable_local_timeline
|
||||
enable_reaction
|
||||
compact_reaction
|
||||
disable_reaction_streaming
|
||||
show_reply_tree_button
|
||||
hide_statuses_count
|
||||
hide_following_count
|
||||
|
|
|
@ -131,7 +131,7 @@ class User < ApplicationRecord
|
|||
:follow_button_to_list_adder, :show_navigation_panel, :show_quote_button, :show_bookmark_button,
|
||||
:place_tab_bar_at_bottom,:show_tab_bar_label,
|
||||
:enable_local_timeline, :enable_federated_timeline, :enable_limited_timeline, :enable_personal_timeline,
|
||||
:enable_reaction, :compact_reaction,
|
||||
:enable_reaction, :compact_reaction, :disable_reaction_streaming,
|
||||
:show_reply_tree_button,
|
||||
:hide_statuses_count, :hide_following_count, :hide_followers_count, :disable_joke_appearance,
|
||||
:new_features_policy,
|
||||
|
|
|
@ -60,6 +60,7 @@ class InitialStateSerializer < ActiveModel::Serializer
|
|||
store[:enable_local_timeline] = false #object.current_account.user.setting_enable_local_timeline
|
||||
store[:enable_reaction] = object.current_account.user.setting_enable_reaction
|
||||
store[:compact_reaction] = object.current_account.user.setting_compact_reaction
|
||||
store[:disable_reaction_streaming] = object.current_account.user.setting_disable_reaction_streaming
|
||||
store[:show_reply_tree_button] = object.current_account.user.setting_show_reply_tree_button
|
||||
store[:disable_joke_appearance] = object.current_account.user.setting_disable_joke_appearance
|
||||
store[:new_features_policy] = object.current_account.user.setting_new_features_policy
|
||||
|
|
|
@ -104,6 +104,9 @@
|
|||
.fields-group
|
||||
= f.input :setting_compact_reaction, as: :boolean, wrapper: :with_label, fedibird_features: true
|
||||
|
||||
.fields-group
|
||||
= f.input :setting_disable_reaction_streaming, as: :boolean, wrapper: :with_label, fedibird_features: true
|
||||
|
||||
.fields-group
|
||||
= f.input :setting_show_reply_tree_button, as: :boolean, wrapper: :with_label, fedibird_features: true
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ class PublishEmojiReactionWorker
|
|||
@name = name
|
||||
|
||||
FeedManager.instance.active_accounts.merge(visibility_scope).find_each do |account|
|
||||
redis.publish("timeline:#{account.id}", payload_json) if redis.exists?("subscribed:timeline:#{account.id}")
|
||||
redis.publish("timeline:#{account.id}", payload_json) if redis.exists?("subscribed:timeline:#{account.id}") && !account.user.setting_disable_reaction_streaming
|
||||
end
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
true
|
||||
|
|
|
@ -77,6 +77,7 @@ en:
|
|||
setting_disable_follow: Restricts you from accidentally following
|
||||
setting_disable_joke_appearance: Disable April Fools' Day and other joke functions
|
||||
setting_disable_post: Restricts you from accidentally posting
|
||||
setting_disable_reaction_streaming: Disable streaming events for real-time reflection of emoji reactions
|
||||
setting_disable_reactions: Restrict reactions for favorites, boosts ,emoji reactions and polls
|
||||
setting_disable_relative_time:
|
||||
setting_disable_unfollow: Restricts you from accidentally unfollowing
|
||||
|
@ -270,6 +271,7 @@ en:
|
|||
setting_disable_follow: Disable follow
|
||||
setting_disable_joke_appearance: Disable joke feature to change appearance
|
||||
setting_disable_post: Disable post
|
||||
setting_disable_reaction_streaming: Disable reaction streaming
|
||||
setting_disable_reactions: Disable reactions
|
||||
setting_disable_relative_time: Disable relative time on posts
|
||||
setting_disable_swiping: Disable swiping motions
|
||||
|
|
|
@ -73,6 +73,7 @@ ja:
|
|||
setting_disable_follow: 誤ってフォローすることを防ぎます
|
||||
setting_disable_joke_appearance: エイプリルフール等のジョーク機能を無効にします
|
||||
setting_disable_post: 誤って投稿することを防ぎます
|
||||
setting_disable_reaction_streaming: リアクションをリアルタイム反映させるためのストリーミングイベントを無効にします
|
||||
setting_disable_reactions: 誤ってお気に入り・ブースト・絵文字リアクション・投票することを防ぎます
|
||||
setting_disable_relative_time: 投稿日時を相対表示する機能を無効にし、日時をそのまま表示します
|
||||
setting_disable_unfollow: 誤ってフォロー解除することを防ぎます
|
||||
|
@ -266,6 +267,7 @@ ja:
|
|||
setting_disable_follow: フォローを無効にする
|
||||
setting_disable_joke_appearance: ジョーク機能による見た目の変更を無効にする
|
||||
setting_disable_post: 投稿を無効にする
|
||||
setting_disable_reaction_streaming: リアクションのストリーミングを無効にする
|
||||
setting_disable_reactions: リアクションを無効にする
|
||||
setting_disable_relative_time: 投稿の相対日時を無効にする
|
||||
setting_disable_swiping: スワイプでの切り替えを無効にする
|
||||
|
|
|
@ -60,6 +60,7 @@ defaults: &defaults
|
|||
enable_local_timeline: true
|
||||
enable_reaction: true
|
||||
compact_reaction: false
|
||||
disable_reaction_streaming: true
|
||||
show_reply_tree_button: true
|
||||
hide_statuses_count: false
|
||||
hide_following_count: false
|
||||
|
|
Loading…
Reference in a new issue