diff options
author | Claire <claire.github-309c@sitedethib.com> | 2023-01-18 16:28:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-18 16:28:18 +0100 |
commit | b034dc42be2250f9b754fb88c9163b62d41f78f5 (patch) | |
tree | 94f8e5604ae93ea50a7d3a8f180238c454fea9c9 /app/javascript | |
parent | 0405be69d265b81a41be9c253e4b50aa6c8e1ee9 (diff) |
Fix /api/v1/admin/trends/tags using wrong serializer (#18943)
* Fix /api/v1/admin/trends/tags using wrong serializer Fix regression from #18641 * Only use `REST::Admin::TagSerializer` when the user can `manage_taxonomies` * Fix admin trending hashtag component to not link if `id` is unknown
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/mastodon/components/admin/Trends.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/admin/Trends.js b/app/javascript/mastodon/components/admin/Trends.js index 9530c2a5b..d01b8437e 100644 --- a/app/javascript/mastodon/components/admin/Trends.js +++ b/app/javascript/mastodon/components/admin/Trends.js @@ -50,7 +50,7 @@ export default class Trends extends React.PureComponent { <Hashtag key={hashtag.name} name={hashtag.name} - to={`/admin/tags/${hashtag.id}`} + to={hashtag.id === undefined ? undefined : `/admin/tags/${hashtag.id}`} people={hashtag.history[0].accounts * 1 + hashtag.history[1].accounts * 1} uses={hashtag.history[0].uses * 1 + hashtag.history[1].uses * 1} history={hashtag.history.reverse().map(day => day.uses)} |