Browse Source

remove thread mode

closed-social-glitch-2
欧醚 1 year ago
parent
commit
d5908cca30
2 changed files with 1 additions and 6 deletions
  1. +0
    -5
      app/javascript/flavours/glitch/features/compose/components/options.jsx
  2. +1
    -1
      app/models/status.rb

+ 0
- 5
app/javascript/flavours/glitch/features/compose/components/options.jsx View File

@ -302,11 +302,6 @@ class ComposerOptions extends ImmutablePureComponent {
name: 'do_not_federate',
text: formatMessage(messages.local_only_short),
},
{
meta: formatMessage(messages.threaded_mode_long),
name: 'threaded_mode',
text: formatMessage(messages.threaded_mode_short),
},
] : null}
onChange={onChangeAdvancedOption}
renderItemContents={this.renderToggleItemContents}

+ 1
- 1
app/models/status.rb View File

@ -97,7 +97,7 @@ class Status < ApplicationRecord
scope :remote, -> { where(local: false).where.not(uri: nil) }
scope :local, -> { where(local: true).or(where(uri: nil)) }
scope :with_accounts, ->(ids) { where(id: ids).includes(:account) }
scope :without_replies, -> { where('statuses.reply = FALSE OR statuses.in_reply_to_account_id = statuses.account_id') }
scope :without_replies, -> { where(reply: false)}
scope :without_reblogs, -> { where(statuses: { reblog_of_id: nil }) }
scope :with_public_visibility, -> { where(visibility: :public) }
scope :tagged_with, ->(tag_ids) { joins(:statuses_tags).where(statuses_tags: { tag_id: tag_ids }) }

Loading…
Cancel
Save