]> cat aescling's git repositories - mastodon.git/commit
Add featured hashtags to profiles (#9755)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 4 Feb 2019 03:25:59 +0000 (04:25 +0100)
committerGitHub <noreply@github.com>
Mon, 4 Feb 2019 03:25:59 +0000 (04:25 +0100)
commit364f2ff9aa2b4bf601d68a12bce758aeb5530467
tree6e47b26ef9148d3b88dd9748460d8cf51beac748
parentd14c276e58f0f223b0e4889d342a948c961081b2
Add featured hashtags to profiles (#9755)

* Add hashtag filter to profiles

GET /@:username/tagged/:hashtag
GET /api/v1/accounts/:id/statuses?tagged=:hashtag

* Display featured hashtags on public profile

* Use separate model for featured tags

* Update featured hashtag counters on-write

* Limit featured tags to 10
24 files changed:
app/controllers/accounts_controller.rb
app/controllers/api/v1/accounts/statuses_controller.rb
app/controllers/settings/featured_tags_controller.rb [new file with mode: 0644]
app/controllers/settings/profiles_controller.rb
app/controllers/settings/sessions_controller.rb
app/javascript/styles/mastodon/accounts.scss
app/javascript/styles/mastodon/admin.scss
app/javascript/styles/mastodon/widgets.scss
app/models/concerns/account_associations.rb
app/models/featured_tag.rb [new file with mode: 0644]
app/models/tag.rb
app/services/process_hashtags_service.rb
app/services/remove_status_service.rb
app/views/accounts/show.html.haml
app/views/settings/featured_tags/index.html.haml [new file with mode: 0644]
config/locales/en.yml
config/locales/simple_form.en.yml
config/navigation.rb
config/routes.rb
db/migrate/20171005102658_create_account_moderation_notes.rb
db/migrate/20190203180359_create_featured_tags.rb [new file with mode: 0644]
db/schema.rb
spec/fabricators/featured_tag_fabricator.rb [new file with mode: 0644]
spec/models/featured_tag_spec.rb [new file with mode: 0644]