Eugen Rochko
7031e350b3
When OAuth password verification fails, return 401 instead of redirect ( #5111 )
...
Call to warden.authenticate! in resource_owner_from_credentials would
make the request redirect to sign-in path, which is a bad response for
apps. Now bad credentials just return nil, which leads to HTTP 401
from Doorkeeper. Also, accounts with enabled 2FA cannot be logged into
this way.
7 years ago
Yamagishi Kazutoshi
12b7306a03
Upgrade Webpacker to version 3.0.1 ( #5122 )
7 years ago
Eugen Rochko
e8871341bf
Fix empty query sent to postgres for custom emojis ( #5121 )
7 years ago
Eugen Rochko
a90aac6953
Update brakeman to 3.0 and bundler-audit to 0.6 ( #5117 )
7 years ago
nullkal
463bbe870f
Refactor 500 file generation for future extension ( #5105 )
7 years ago
m4sk1n
7291f1de08
i18n: Update Polish translation ( #5106 )
...
* i18n: Update Polish translation
* i18n: Update Polish translation
7 years ago
kibigo!
cae9e7ab76
Fixed webpack config code
7 years ago
kibigo!
aac16a82d6
Better themeing support!!
7 years ago
Eugen Rochko
10a2b3dd4c
Follow-up to #4582 and #5027 , removing dead code ( #5101 )
7 years ago
Eugen Rochko
1efe904a28
Fix #5059 - Stop processing payload if it's from local account ( #5100 )
7 years ago
Eugen Rochko
25d6a51276
Send streaming API delete to people mentioned in status ( #5103 )
...
- Previously they wouldn't receive it unless they were author's
followers
- Skip unpush from public/hashtag timelines if status wasn't
public in the first place
7 years ago
Eugen Rochko
1767f9817c
New error page graphic. Other error page improvements ( #5099 )
...
- 500.html generated with admin-set default locale if set
- Error page `<title>` includes Mastodon site title
- 500 title changed to "This page is not
correct" (ref: <https://www.youtube.com/watch?v=2VCAP_seh1A >)
- 500 content appended with "on our end" to make clear it's
not user's fault
7 years ago
Lynx Kotoura
cad208ba43
Fix size of single media in media-gallery ( #5098 )
7 years ago
Eugen Rochko
8b7c639bbe
Fix emojify() by generating a mapping to existing Twemoji files ( #5080 )
...
A new rake task emojis:generate downloads a full list of valid
unicode sequences from unicode.org and checks it against existing
Twemoji files, finally generating a map from each sequence to the
existing file (e.g. when there's multiple ways an emoji can be
expressed). The map is dumped into app/javascript/mastodon/emoji_map.json
That file is loaded by emojione_light.js (now a misnomer) which
decorates it further with shortcodes taken from emoji-mart's index.
7 years ago
Akihiko Odaki
77424c156d
Add missing validations in ActivityPub::Activity::Create ( #5096 )
7 years ago
unarist
df27f599d2
Increase max height of preview card image ( #5092 )
...
We added horizontal layout to preview card for wide image. However, max height of the thumbnail is still limited to 120px and it makes nearly square images to too small for that layout.
This PR increases max height as well as max width.
7 years ago
Yamagishi Kazutoshi
5391b6d44d
Refresh manifest before generate 500.html ( #5090 )
7 years ago
Eugen Rochko
6b0ea1e79c
Generate 500.html with assets:precompile, remove loading from Google Fonts ( #5067 )
7 years ago
Eugen Rochko
65827bd2b4
Add strong_migrations gem to warn when creating unsafe migrations ( #5078 )
7 years ago
Eugen Rochko
6d12bcb225
Fix streaming API double-JSON-encoding status IDs for deletes ( #5069 )
7 years ago
JeanGauthier
91fa75997a
OC update: different emoji picker ( #5046 ) ( #5077 )
7 years ago
ThibG
2338b5954c
Thread toot notification mails by conversation ( #5061 )
...
* Thread toot notification mails by conversation
* Make codeclimate happy and avoid potential mis-threading
7 years ago
Daigo 3 Dango
7e6322863c
Compact status_ids in StatusRelationshipsPresenter ( #5073 )
7 years ago
abcang
9cdd517849
Fix media spoiler of DetailedStatus ( #5071 )
7 years ago
Daigo 3 Dango
e7624bfaae
Suppress backtrace when failed to communicate with a remote instance ( #5076 )
7 years ago
Eugen Rochko
9ad1bfbc18
In detail status view, display attachment uncropped if there's only one ( #5054 )
...
* In detail status view, display attachment uncropped if there's only one
* Make media spoiler the size of the media it hides, enable on static
7 years ago
Eugen Rochko
2e342947ce
Forgotten in #5039 , change statuses_tags tag_id to bigint ( #5070 )
7 years ago
Eugen Rochko
40399df3e4
Make sure nil IDs to not get cast to empty string in REST API ( #5068 )
7 years ago
Eugen Rochko
ba676acb6e
Change mobile layout breakpoint from 1024px to 630px ( #5063 )
...
630px = Drawer + 1 Column
7 years ago
Eugen Rochko
6a42ddd01c
Dropdown triangles a bit nicer, smoother scrolling on touch ( #5062 )
7 years ago
Eugen Rochko
b8a3a45da1
Fix media gallery CSS ( #5064 )
7 years ago
Eugen Rochko
0468f86a8b
Require at least 2 characters before showing autosuggestions ( #5065 )
7 years ago
Ondřej Hruška
b8019a2a46
Fix intl warning with disabled secondary toot btn
...
- Moved building the secondary btn text into the if to avoid trying to translate 'none' visibility
7 years ago
Ondřej Hruška
3b79104d29
Make secondary toot button work nicer with file attachments & revert to the original behavior if it's disabled
7 years ago
Ondřej Hruška
b65e03fd0f
Add secondary toot button (opt-in) ( #153 )
...
Add secondary toot button + other toot button enhancements.
Squashing so it's easy to revert if needed.
7 years ago
Mingye Wang
213b828014
jsx/zh-*: Fix "pin column" for Chinese ( #5060 )
7 years ago
m4sk1n
6cf48c427b
i18n: Update Polish translation ( #5058 )
7 years ago
Lynx Kotoura
2063f622df
Fix overflowing tabs in account__action-bar ( #5056 )
...
* Fix numbers in accounts columns
* Support edge compact-header
7 years ago
Eugen Rochko
da257754b5
Add emoji autosuggest ( #5053 )
...
* Add emoji autosuggest
Some credit goes to glitch-soc/mastodon#149
* Remove server-side shortcode->unicode conversion
* Insert shortcode when suggestion is custom emoji
* Remove remnant of server-side emojis
* Update style of autosuggestions
* Fix wrong emoji filenames generated in autosuggest item
* Do not lazy load emoji picker, as that no longer works
* Fix custom emoji autosuggest
* Fix multiple "Custom" categories getting added to emoji index, only add once
7 years ago
Eugen Rochko
4a0212bf2f
Add custom emojis to the emoji picker ( #5052 )
7 years ago
Eugen Rochko
f621e05356
New API: GET /api/v1/custom_emojis to get a server's custom emojis ( #5051 )
7 years ago
Eugen Rochko
d2aeb45461
Fix custom emojis not detected when used in content warning ( #5049 )
7 years ago
Eugen Rochko
16a5d1450c
Switch from EmojiOne to Twemoji, different emoji picker ( #5046 )
...
* Switch from EmojiOne to Twemoji, different emoji picker
* Make emoji-mart use a local spritesheet
* Fix emojify test
* yarn manage:translations
7 years ago
Ondřej Hruška
ba7fbb92a7
Remove "extra clickable spaces" made obsolete by status re-design
7 years ago
Ondřej Hruška
1325ec8b1d
applied blackle's fix for gallery offset with full-width media
7 years ago
Akihiko Odaki
f9dd41621f
Do not filter statuses with unknown languages ( #5045 )
7 years ago
nullkal
d60728e91d
Fix the migration error when deprecated_preview_cards has been deleted ( #5043 )
...
* Fix the migration error when deprecated_preview_cards has deleted
* Re-run Travis CI
7 years ago
Nolan Lawson
60c22ed3ac
Fix PropTypes.oneOfType() warning ( #5041 )
7 years ago
aschmitz
f79569ba99
Hardcode IdToBigints migration columns ( #5039 )
...
This addresses a comment during review:
https://github.com/tootsuite/mastodon/pull/4801#discussion_r139337452
This means we'll need to make sure that all _id columns going forward
are bigints, but that should happen automatically in most cases.
7 years ago
Nolan Lawson
1e65921ed8
Document REDIS_NAMESPACE ( #5038 )
7 years ago