]> cat aescling's git repositories - mastodon.git/commit
Track trending tags (#7638)
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 27 May 2018 19:45:30 +0000 (21:45 +0200)
committerGitHub <noreply@github.com>
Sun, 27 May 2018 19:45:30 +0000 (21:45 +0200)
commit9bd23dc4e51ba47283a8e3a66cd94b4e624a5235
tree119802887a7b894ea3aac5e28a8a7a15524c1c35
parent63c7b9157274f57c496399a1a5c728b32415034c
Track trending tags (#7638)

* Track trending tags

- Half-life of 1 day
- Historical usage in daily buckets (last 7 days stored)
- GET /api/v1/trends

Fix #271

* Add trends to web UI

* Don't render compose form on search route, adjust search results header

* Disqualify tag from trends if it's in disallowed hashtags setting

* Count distinct accounts using tag, ignore silenced accounts
15 files changed:
app/controllers/api/v1/trends_controller.rb [new file with mode: 0644]
app/javascript/mastodon/actions/trends.js [new file with mode: 0644]
app/javascript/mastodon/features/compose/components/search_results.js
app/javascript/mastodon/features/compose/containers/search_results_container.js
app/javascript/mastodon/features/compose/index.js
app/javascript/mastodon/reducers/index.js
app/javascript/mastodon/reducers/trends.js [new file with mode: 0644]
app/javascript/styles/mastodon/components.scss
app/models/tag.rb
app/models/trending_tags.rb [new file with mode: 0644]
app/serializers/rest/tag_serializer.rb [new file with mode: 0644]
app/services/process_hashtags_service.rb
config/routes.rb
package.json
yarn.lock