Browse Source

Add “account timeline” filter category (#12918)

* Add “account timeline” filter category

Previously, no filter category applied to account timelines.

* Rename “Account timelines” into “Profiles”
closed-social-v3
ThibG 4 years ago
committed by Eugen Rochko
parent
commit
43daeccccb
4 changed files with 4 additions and 0 deletions
  1. +1
    -0
      app/javascript/mastodon/features/account_timeline/index.js
  2. +1
    -0
      app/javascript/mastodon/selectors/index.js
  3. +1
    -0
      app/models/custom_filter.rb
  4. +1
    -0
      config/locales/en.yml

+ 1
- 0
app/javascript/mastodon/features/account_timeline/index.js View File

@ -115,6 +115,7 @@ class AccountTimeline extends ImmutablePureComponent {
shouldUpdateScroll={shouldUpdateScroll}
emptyMessage={emptyMessage}
bindToDocument={!multiColumn}
timelineId='account'
/>
</Column>
);

+ 1
- 0
app/javascript/mastodon/selectors/index.js View File

@ -26,6 +26,7 @@ const toServerSideType = columnType => {
case 'notifications':
case 'public':
case 'thread':
case 'account':
return columnType;
default:
if (columnType.indexOf('list:') > -1) {

+ 1
- 0
app/models/custom_filter.rb View File

@ -20,6 +20,7 @@ class CustomFilter < ApplicationRecord
notifications
public
thread
account
).freeze
include Expireable

+ 1
- 0
config/locales/en.yml View File

@ -733,6 +733,7 @@ en:
hint_html: "<strong>What are featured hashtags?</strong> They are displayed prominently on your public profile and allow people to browse your public posts specifically under those hashtags. They are a great tool for keeping track of creative works or long-term projects."
filters:
contexts:
account: Profiles
home: Home timeline
notifications: Notifications
public: Public timelines

Loading…
Cancel
Save