mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-12 13:08:47 -05:00
Add more features to feature usage counter (#40258)
This commit is contained in:
@@ -116,7 +116,7 @@ export const Card: React.FC<{ id: string; source: SuggestionSource }> = ({
|
||||
title={intl.formatMessage(messages.dismiss)}
|
||||
className='explore-suggestions-card__dismiss-button'
|
||||
/>
|
||||
<FollowButton accountId={account.get('id')} />
|
||||
<FollowButton accountId={account.get('id')} reference='suggestions' />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -158,7 +158,7 @@ const Card: React.FC<{
|
||||
)}
|
||||
</div>
|
||||
|
||||
<FollowButton accountId={id} />
|
||||
<FollowButton accountId={id} reference='inline_suggestions' />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -46,7 +46,9 @@ const hidePeek = <T,>(list: T[]) => {
|
||||
};
|
||||
|
||||
const renderAccounts = (accountIds: string[]) =>
|
||||
hidePeek<string>(accountIds).map((id) => <Account key={id} id={id} />);
|
||||
hidePeek<string>(accountIds).map((id) => (
|
||||
<Account key={id} id={id} reference='search' />
|
||||
));
|
||||
|
||||
const renderHashtags = (hashtags: HashtagType[]) =>
|
||||
hidePeek<HashtagType>(hashtags).map((hashtag) => (
|
||||
|
||||
@@ -9,8 +9,11 @@ class FeatureUsageTracker
|
||||
|
||||
REF_VALUES = %w(
|
||||
collection
|
||||
inline_suggestions
|
||||
onboarding
|
||||
profile
|
||||
search
|
||||
suggestions
|
||||
).freeze
|
||||
|
||||
EXPIRE_AFTER = 6.months.seconds
|
||||
|
||||
Reference in New Issue
Block a user