Commit Graph

260 Commits (d05f62391d0f0e2da43de63d888121ad23c479b2)

Author SHA1 Message Date
Eugen Rochko 61d3ecc805 Fix custom emoji copy not copying file ()
nullkal 633426b261 Add moderation note ()
* Add moderation note

* Add frozen_string_literal

* Make rspec pass
Eugen Rochko 49cc0eb3e7 Improve admin UI for custom emojis, add copy/disable/enable ()
utam0k b3af3f9f8c Implement EmailBlackList ()
* Implement BlacklistedEmailDomain

* Use Faker::Internet.domain_name

* Remove note column

* Add frozen_string_literal comment

* Delete unnecessary codes

* Sort alphabetically

* Change of wording

* Rename BlacklistedEmailDomain to EmailDomainBlock
Eugen Rochko 293972f716 New API: GET /api/v1/custom_emojis to get a server's custom emojis ()
Yamagishi Kazutoshi 1664e52cbb Fix custom emojis index ()
Eugen Rochko 09a94b575e Admin interface for listing, adding and removing custom emojis ()
* Admin interface for listing, adding and removing custom emojis

* Only display local ones in the list
Eugen Rochko 9239e4ce4d Uploads for admin site settings ()
* Improve OpenGraph tags for about pages

* Add thumbnail admin setting

* Fix error

* Fix up
nullkal da77f65c46 Add instance search feature ()
Eugen Rochko 7d7844a47f Default follows for new users ()
When a new user confirms their e-mail, bootstrap their home timeline
by automatically following a set of accounts. By default, all local
admin accounts (that are unlocked). Can be customized by new admin
setting (comma-separated usernames, local and unlocked only)
HIKARU KOBORI 2c6a85832c Fix typo in admin/status_controller.rb ()
Eugen Rochko 6e9eda5331 ActivityPub migration procedure ()
* ActivityPub migration procedure

Once one account is detected as going from OStatus to ActivityPub,
invalidate WebFinger cache for other accounts from the same domain

* Unsubscribe from PuSH updates once we receive an ActivityPub payload

* Re-subscribe to PuSH unless already unsubscribed, regardless of protocol
Eugen Rochko 4b911fea03 Add button to re-subscribe to all accounts from a domain ()
abcang 4d42a38954 Improve admin page ()
* Improve admin page

* Fix test

* Add spec

* Improve select style
Eugen Rochko 056b5ed72f Improve UI of admin site settings ()
Eugen Rochko e6c81a635b Fix - Rake task to redownload avatars/headers ()
Can be filtered by a specific domain
Resolves 
Eugen Rochko e19eefe219 Redesign the landing page, mount public timeline on it ()
* Redesign the landing page, mount public timeline on it

* Adjust the standalone mounted component to the lacking of router

* Adjust auth layout pages to new design

* Fix tests

* Standalone public timeline polling every 5 seconds

* Remove now obsolete translations

* Add responsive design for new landing page

* Address reviews

* Add floating clouds behind frontpage form

* Use access token from public page when available

* Fix mentions and hashtags links, cursor on status content in standalone mode

* Add footer link to source code

* Fix errors on pages that don't embed the component, use classnames

* Fix tests

* Change anonymous autoPlayGif default to false

* When gif autoplay is disabled, hover to play

* Add option to hide the timeline preview

* Slightly improve alt layout

* Add elephant friend to new frontpage

* Display "back to mastodon" in place of "login" when logged in on frontpage

* Change polling time to 3s
のら ca45bd0361 Add Japanese translation of terms and flash ()
Yamagishi Kazutoshi 275c5b51ed Customizable privacy policy from admin interface ()
Eugen Rochko 8902e265b4 Add explit admin actions to (re)subscribe/unsubscribe remote accounts ()
* Add explit admin actions to (re)subscribe/unsubscribe remote accounts
and re-download avatar/header

* Improve how admin NSFW toggle looks
Matt Jankowski de4681b2be Move admin/pubsubhubbub controller to admin/subscriptions ()
Matt Jankowski a132332b86 Add Instance class to list admin records ()
Jack Jennings 33f669a5f8 Add status destroy authorization to policy ()
* Add status destroy authorization to policy

* Create explicit unreblog status authorization
alpaca-tc 7ee5fc5d68 Toggle sensitive from admin page ()
alpaca-tc e89e4355eb Add filter to AccountFilter ()
masarakki 1b0a5658f1 use-symbol-in-order ()
alpaca-tc a0b1951791 Refactor domain_blocks_controller ()
* Set domain_block by before_action

* Cast value with ActiveRecord::Type

* Batch update
Matt Jankowski 2bd132d458 Replace best_in_place editor on admin settings page ()
* Remove best_in_place

* Replace best_in_place usage with rails helpers

* Move admin/settings#index to #edit action

* Remove click_to__edit from i18n
Kaylee 7880671f35 Add option to disable two factor auth in admin accounts panel. ()
* Add option to disable two factor auth in admin accounts panel.
Closes 

* Add @mjankowski's suggestions.
* Moves destroy actions behind User#disable_two_factor!
* Adds spec coverage for Admin:TwoFactorAuthenticationsController and User#disable_two_factor!
Matt Jankowski b5eec34230 Add admin area view partials for each record type ()
Matt Jankowski f48cb3eb17 More coverage yes more even more ()
* Add coverage for admin/confirmations controller

* Coverage for statuses controller show action

* Add coverage for admin/domain_blocks controller

* Add coverage for settings/profiles#update
Ash Furrow 723f25a999 Admin UI for confirming users ()
* Shows confirmed status in list.

* Adds ability to confirm users in admin UI.

* Added new english translations.

* Addresses feedback from .

* More feedback.
Matt Jankowski 1ada494bb2 Admin settings controller refactor, add specs, cleanup ()
* Add render_views for admin/settings spec

* Add coverage for admin/settings#update

* Add coverage for admin/settings typecasting open_registrations setting

* Simplify how admin/settings finds the value for updating

* Rely on activerecord to not update a value that hasnt changed

* Add coverage for non-existent setting

* Use a constant for boolean settings
Matt Jankowski a8e1afc30a Simplify render in controllers ()
Matt Jankowski 55e1503522 Instances list in admin ()
* Add admin/instances index action

* Add link to instances admin page

* View lists instances

* Instances, grouped by domain, ordered by count

* Use Account.remote scope

* Extract method: Account.by_domain_accounts
Matt Jankowski 66d8f99a30 Admin reports with accounts ()
* Add a ReportFilter class

* Add reports and targeted_reports relationships to Account

* Use ReportFilter from admin/reports controller

* Link to admin/reports filtered views from admin account show view

* Add indexes to reports.account_id and reports.target_account_id
Matt Jankowski f87b51fda8 I18n health warnings ()
* Rename admin.domain_block to admin.domain_blocks in prep for i18n improvement

* Use implicit controller/action path for i18n in admin/domain_blocks

* Add DomainBlock#accounts has_many

* Avoid i18n health warning for `en` locale by using symbol scope with :count

* Remove unused i18n key: plaintext_secret_html

* Remove unused i18n key two_factor_auth.warning

* Remove final will_paginate i18n keys

* Remove unused key two_factor_auth.recovery_codes

* Remove unused key: admin.reports.comment.none

* Remove unused reports. i18n namespace (moved to admin.reports)

* Ignore keys from locales which override activemodel and activerecord errors

* Revert "Remove unused key: admin.reports.comment.none"

This reverts commit 350ef2685f.

* Update i18n key reference to match moved location

* Add missing `en` keys to i18n

* Tell i18n-tasks to ignore missing attributes that dont need overwriting

* Add i18n-tasks unused to travis
Eugen 5d710b1139 Make file attachment on MediaAttachment optional ()
Create MediaAttachment but without actual file download when domain is blocked with reject_media set to true
Clean up old media files when creating a new domain block with reject_media set to true
Return remote_url in media attachments API if local file is not present
Undo domain block action in admin UI
Ability to enable reject_media from admin UI
Matt Jankowski 6670e6d33f Add password reset for users from admin accounts area ()
Matt Jankowski 8b74aa4217 Admin reports controller improvements ()
* Simplify admin/reports controller filtering for index

* Rename parameter to resolved

* Fix issue where reports view could not access filter_link_to

* Add coverage for admin/reports controller

* DRY up resolution of related reports for target account

* Clean up admin/reports routes

* Add Report#statuses method

* DRY up current account action taken params

* Rubocop styles
Matt Jankowski 3a9eb81a80 Admin accounts controller cleanup ()
* Remove unused account_params method in admin/accounts controller

* Introduce AccountFilter to find accounts

* Use AccountFilter in admin/accounts controller

* Use more restful routes admin silence and suspension area

* Add admin/silences and admin/suspensions controllers
Matt Jankowski 4ada50985a Pagination improvements ()
* Replace will_paginate with kaminari

* Use #page instead of #paginate in controllers

* Replace will_paginate.page_gap with pagination.truncate in i18n

* Customize kaminari views to match prior styles

* Set kaminari options to match prior behavior

* Replace will_paginate with paginate in views
Matt Jankowski dbe9f33fdc Admin base controller ()
* Add Admin::BaseController to wrap admin area

Extracts the setting of the `admin` layout and verifying that users are admins
to a common base class for the admin/ controllers.

* Add basic coverage for admin/reports and admin/settings controllers
Eugen Rochko 5f54981846 New admin setting: open/close registrations, with custom message, from the admin UI
Eugen Rochko 68f829e11c Add basic logging of who resolved report
Eugen Rochko 71458dc6df When taking action on a report (silence/suspend), it dismisses all other
reports for that user automatically
Eugen Rochko b7c1b12367 Make default admin UI page reports. Add admin UI for creating a domain block
Eugen Rochko 4b7dca4713 Fix wording "show reblogs" -> "show boosts", order reports chronologically in
admin UI
Eugen Rochko d0f087db2d Add UI to view report details, remove reported statuses, quick links to resolve/silence/suspend from report
Eugen Rochko 24ba7c9762 Adding index overview for reports in admin UI
Eugen Rochko 5426f06ac2 Fix admin UI for accounts somewhat
Eugen Rochko b11fdc3ae3 Migrate from ledermann/rails-settings to rails-settings-cached which allows global settings
with YAML-defined defaults. Add admin page for editing global settings. Add "site_description"
setting that would show as a paragraph on the frontpage
Eugen Rochko 76ec907993 Improved admin UI
Eugen Rochko f978b06dd1 Add suspend account functionality to admin UI
Eugen Rochko 39cc9fde8a Add account suspension
Eugen Rochko 9d9f796130 Adding more to admin accounts UI
Eugen Rochko ec44cff9a2 Admin accounts page lists accounts
Eugen Rochko 356d3874eb Normalize localizations, add stub for admin/accounts
Eugen Rochko 3ba6531611 Fix setting of confirmed=true on successful confirmation
Eugen Rochko 27fc49d745 Add simple admin overview of PuSH subscriptions