Commit Graph

67 Commits (f6d35ed57d156f4225338a89372c8e83721e46c9)

Author SHA1 Message Date
Claire 0a8a0fb599
Fix unusual number formatting in some locales ()
* Fix unusual number formatting in some locales

Fixes 

* Fix typo
Eugen Rochko cefa526c6d
Refactor formatter ()
* Refactor formatter

* Move custom emoji pre-rendering logic to view helpers

* Move more methods out of Formatter

* Fix code style issues

* Remove Formatter

* Add inline poll options to RSS feeds

* Remove unused helper method

* Fix code style issues

* Various fixes and improvements

* Fix test
Claire b07906bdb0
Fix wrong language code for Kurdish languages ()
Eugen Rochko 50ea54b3ed
Change authorized applications page ()
* Change authorized applications page

* Hide revoke button for superapps and suspended accounts

* Clean up db/schema.rb
Claire dd63923c0a
Fix link_to_login argument handling when a block is passed ()
Claire bddd9ba36d
Add OMNIAUTH_ONLY environment variable to enforce externa log-in ()
* Remove support for OAUTH_REDIRECT_AT_SIGN_IN

Fixes 

Introduced in , OAUTH_REDIRECT_AT_SIGN_IN allowed skipping the log-in form
to instead redirect to the external OmniAuth login provider.

However, it did not prevent the log-in form on /about introduced by  from
appearing, and completely broke with the introduction of .

As I restoring that previous log-in flow without introducing a security
vulnerability may require extensive care and knowledge of how OmniAuth works,
this commit removes support for OAUTH_REDIRECT_AT_SIGN_IN instead for the time
being.

* Add OMNIAUTH_ONLY environment variable to enforce external log-in only

* Disable user registration when OMNIAUTH_ONLY is set to true

* Replace log-in links When OMNIAUTH_ONLY is set with exactly one OmniAuth provider
Eugen Rochko 07341e7aa6
Add graphs and retention metrics to admin dashboard ()
Claire e2844b7e58
Change number_to_human calls to always use 3-digits precision ()
Fixes 
Claire e243092a5a
Add DM icon back on HTML view of DMs ()
Fix regression from 
Eugen Rochko 480d7c9478
Fix missing source strings and inconsistent lead text style in admin UI ()
Eugen Rochko a55e6e99c0
Fix `ku` locale not being right-to-left ()
Takeshi Umeda 148ce97e21
Add interrelationship icon ()
* Add interrelationship icon

* Fix arrow for rtl

* Fix to predefined color
dependabot[bot] 8972e5f7f6
Bump rubocop from 0.86.0 to 0.88.0 ()
* Bump rubocop from 0.86.0 to 0.88.0

Bumps [rubocop](https://github.com/rubocop-hq/rubocop) from 0.86.0 to 0.88.0.
- [Release notes](https://github.com/rubocop-hq/rubocop/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop/compare/v0.86.0...v0.88.0)

Signed-off-by: dependabot[bot] <support@github.com>

* Fix for latest RuboCop

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh>
Takeshi Umeda 418f0a33e9
Add a visibility icon to status ()
* Add a visibility icon to status

* Change to using the icon element

* Fix RTL

* Add a public globe
Takeshi Umeda 13f065da05
Add visibility parameter in share page ()
* Add visibility parameter in share page

* Restrict to default privacy
ThibG 17389c63c8 Change /admin/custom_emoji to honor the auto_play_gif setting ()
Fixes 
Eugen Rochko e5cee8062f
Fix blurhash and autoplay not working on public pages ()
Eugen Rochko 46cb36fd2c
Add invite request to pending account notification e-mail ()
Fix sorting of the pending accounts page
Eugen Rochko 51e154f5e8
Admission-based registrations mode ()
Fix 
Fix 
ThibG 4fb94c758e Add attachment list fallback to public pages ()
* Add attachment list fallback to public pages

Fixes 

* Refactor attachments lists
Eugen Rochko 22de24b8ca
Fix missing protocol in dns-prefetch, improve code style ()
Regression from 
Eugen Rochko da7705b274
Add dns-prefetch if using different host for assets or uploads ()
Eugen Rochko 3d7f68c273
Revert Font Awesome 5 upgrade ()
* Revert "Fix some icon names changed by the Font Awesome 5. ()"

This reverts commit 3f9ec3de82.

* Revert "Migrate to font-awesome 5.0. ()"

This reverts commit 8bae14591b.

* Revert "Fix some icons names, unavailable in fontawesome5 (free license). ()"

This reverts commit b9c727a945.

* Revert "Update the icon name changed by the Font Awesome 5. ()"

This reverts commit 17af4d27da.

* Revert "Add bot icon to bot avatars and migrate to newer version of Font Awesome ()"

This reverts commit 4b794e134d.
Naoki Kosaka 8bae14591b Migrate to font-awesome 5.0. ()
ThibG c39183cc62 Refactor active_nav_class for use with multiple paths ()
Eugen Rochko 6c9be61f57
Fix regression from ()
Missing no-reduce-motion/reduce-motion body class
Eugen Rochko 22e46ebad8
Add theme identifier to body classes for easier custom CSS styling ()
Add forgotten custom CSS admin setting strings
Eugen Rochko 1f6ed4f86a
Add more granular OAuth scopes ()
* Add more granular OAuth scopes

* Add human-readable descriptions of the new scopes

* Ensure new scopes look good on the app UI

* Add tests

* Group scopes in screen and color-code dangerous ones

* Fix wrong extra scope
Eugen Rochko a9c440637c
Improve report layout ()
* Use table for statuses in report

* Display reported account and reporter in the same table

* Split accounts and general report info into two tables again

* Redesign report statuses table, notes, merge notes and action log

* Remove unused translations

* Fix code style issue

* Fix code style issue

* Fix code style issue
Eugen Rochko 79bc3d5845
Add direction tags to HTML e-mails for RTL languages ()
Yamagishi Kazutoshi b21db9bbde Using double splat operator ()
Eugen Rochko 7bb8b0b2fc
Add moderator role and add pundit policies for admin actions ()
* Add moderator role and add pundit policies for admin actions

* Add rake task for turning user into mod and revoking it again

* Fix handling of unauthorized exception

* Deliver new report e-mails to staff, not just admins

* Add promote/demote to admin UI, hide some actions conditionally

* Fix unused i18n
nullkal b6e2e999bd Show the local couterpart of emoji when it exists in /admin/custom_emojis ()
* Show the local couterpart of emoji when it exists in admin/custom_emojis

* Fix indentation

* Fix error

* Add class table-action-link to Overwrite link

* Make it enable to overwrite emojis

* Make Code Climate happy
Eugen Rochko 8f8e677630 Clean up and improve generated OpenGraph tags ()
- Return all images as og:image
- Return videos as og:image (preview) and og:video
- Return profile:username on profiles
Eugen Rochko ca7ea1aba9 Redesign public profiles ()
* Redesign public profiles

* Responsive design

* Change public profile status filtering defaults and add options

- No longer displays private/direct toots even if you are permitted access
- By default omits replies
- "With replies" option
- "Media only" option

* Redesign account grid cards

* Fix style issues
Yamagishi Kazutoshi 92f1c474f3 Add fa-fw class to user agent icon ()
masarakki ff142eb64d setting-for-account-deletable ()
Matt Jankowski 25e5aa645d Skip asset pipeline for static file in public/ ()
Hiroaki Ninomiya cb50ecdb07 chore(landing_strip): hide signup path unless the instance allows registration. ()
Eugen Rochko f5bf5ebb82 Replace sprockets/browserify with Webpack ()
* Replace browserify with webpack

* Add react-intl-translations-manager

* Do not minify in development, add offline-plugin for ServiceWorker background cache updates

* Adjust tests and dependencies

* Fix production deployments

* Fix tests

* More optimizations

* Improve travis cache for npm stuff

* Re-run travis

* Add back support for custom.scss as before

* Remove offline-plugin and babili

* Fix issue with Immutable.List().unshift(...values) not working as expected

* Make travis load schema instead of running all migrations in sequence

* Fix missing React import in WarningContainer. Optimize rendering performance by using ImmutablePureComponent instead of
React.PureComponent. ImmutablePureComponent uses Immutable.is() to compare props. Replace dynamic callback bindings in
<UI />

* Add react definitions to places that use JSX

* Add Procfile.dev for running rails, webpack and streaming API at the same time
Ashley 1736badf28 Added '(dev)' to the title in development mode ()
* Added different title for dev

* Changed indentation
Lindsey Bieda 25cbb8454c Red favicon for dev ()
* Set a dev specific favicon

* Consistent spacing

* Add trailing slash for consistency

* Update to remove interpolation
Masoud Abkenar bb04a9be52 Persian translation ()
* Persian translation

* adding :fa to make the site use the rtl stylesheet

based on [this comment](https://github.com/tootsuite/mastodon/pull/2405#issuecomment-296721105)

* fix missing quotes

* add 'fa' locale
Eugen e59f5c8e13 Add an RTL stylesheet for Arabic i18n ()
Matt Jankowski 3834e1e69b View spec fix ()
* Add option to disable verify partial doubles

* Add show_landing_strip? helper method

* Use show_landing_strip? helper in accounts and stream entries views

* Fix naming in view specs
Eugen Rochko f763e844e8 Do not use expiring links after all
Eugen Rochko 24e692b0cf Set a specific S3 expiration time so that files can be cached
Eugen Rochko 1d0321fc45 Fix pt translations, improve pre-cache queries, removing will_paginate
from accounts/tags because it's a terribly inefficient way to paginate
large sets of data
Eugen Rochko fdc17bea58 Fix rubocop issues, introduce usage of frozen literal to improve performance
Eugen Rochko 3cc47beb6e Refactored generation of unique tags, URIs and object URLs into own classes,
as well as formatting of content