Thibaut Girka
ca9f022a80
[Glitch] Fix: Prevent submission using same logic as submit button disabling.
Port 6a895e1ab3
to glitch-soc
6 years ago
unarist
2c51bc0ca5
Add missing rejection handling for Promises ( #7008 )
* Add eslint-plugin-promise to detect uncaught rejections
* Move alert generation for errors to actions/alert
* Add missing rejection handling for Promises
* Use catch() instead of onReject on then()
Then it will catches rejection from onFulfilled. This detection can be
disabled by `allowThen` option, though.
6 years ago
Emelia Smith
e7a1716701
Implement the ability for an Administrator or Moderator to remove an account avatar ( #6998 )
6 years ago
Emelia Smith
4fd71accd4
Fix issues with sending direct messages from user profile ( #6999 )
* Clear compose textarea when starting a new direct message
Previous behaviour resulted in potentially misdirected direct messages.
* Hide search when starting to compose a direct message
6 years ago
Yamagishi Kazutoshi
3f51c6efaa
Weblate translations (2018-04-02) ( #7007 )
* Translated using Weblate (Galician)
Currently translated at 100.0% (587 of 587 strings)
Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/gl/
* Translated using Weblate (Dutch)
Currently translated at 100.0% (587 of 587 strings)
Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/nl/
* Translated using Weblate (Catalan)
Currently translated at 100.0% (587 of 587 strings)
Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/ca/
* Translated using Weblate (Arabic)
Currently translated at 76.4% (449 of 587 strings)
Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/ar/
* Translated using Weblate (Japanese)
Currently translated at 99.8% (586 of 587 strings)
Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/ja/
* Translated using Weblate (Slovak)
Currently translated at 92.3% (542 of 587 strings)
Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/sk/
* Translated using Weblate (Slovak)
Currently translated at 92.3% (542 of 587 strings)
Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/sk/
* Translated using Weblate (Slovak)
Currently translated at 100.0% (58 of 58 strings)
Translation: Mastodon/Preferences
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/simple_form/sk/
* Translated using Weblate (Polish)
Currently translated at 98.9% (581 of 587 strings)
Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/pl/
* Translated using Weblate (French)
Currently translated at 99.6% (585 of 587 strings)
Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/fr/
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 99.8% (586 of 587 strings)
Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/pt_BR/
* Translated using Weblate (Catalan)
Currently translated at 100.0% (280 of 280 strings)
Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/ca/
* Translated using Weblate (Persian)
Currently translated at 100.0% (75 of 75 strings)
Translation: Mastodon/Doorkeeper
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/doorkeeper/fa/
* Translated using Weblate (Persian)
Currently translated at 100.0% (280 of 280 strings)
Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/fa/
* Translated using Weblate (French)
Currently translated at 100.0% (280 of 280 strings)
Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/fr/
* Translated using Weblate (Japanese)
Currently translated at 99.8% (586 of 587 strings)
Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/ja/
* Translated using Weblate (Japanese)
Currently translated at 99.8% (586 of 587 strings)
Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/ja/
* Translated using Weblate (Slovak)
Currently translated at 100.0% (280 of 280 strings)
Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/sk/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (280 of 280 strings)
Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/zh_Hant/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (62 of 62 strings)
Translation: Mastodon/Devise
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/devise/zh_Hant/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (75 of 75 strings)
Translation: Mastodon/Doorkeeper
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/doorkeeper/zh_Hant/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (62 of 62 strings)
Translation: Mastodon/Devise
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/devise/zh_Hant/
* Translated using Weblate (Esperanto)
Currently translated at 100.0% (587 of 587 strings)
Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/eo/
* Translated using Weblate (Esperanto)
Currently translated at 100.0% (280 of 280 strings)
Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/eo/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (75 of 75 strings)
Translation: Mastodon/Doorkeeper
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/doorkeeper/zh_Hant/
* Translated using Weblate (Arabic)
Currently translated at 76.6% (450 of 587 strings)
Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/ar/
* Translated using Weblate (Esperanto)
Currently translated at 100.0% (587 of 587 strings)
Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/eo/
* Translated using Weblate (Esperanto)
Currently translated at 100.0% (280 of 280 strings)
Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/eo/
* Translated using Weblate (Slovak)
Currently translated at 92.6% (544 of 587 strings)
Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/sk/
* Translated using Weblate (Slovak)
Currently translated at 100.0% (75 of 75 strings)
Translation: Mastodon/Doorkeeper
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/doorkeeper/sk/
* Translated using Weblate (Arabic)
Currently translated at 82.9% (487 of 587 strings)
Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/ar/
* Translated using Weblate (Arabic)
Currently translated at 98.6% (74 of 75 strings)
Translation: Mastodon/Doorkeeper
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/doorkeeper/ar/
* Translated using Weblate (Slovak)
Currently translated at 93.6% (550 of 587 strings)
Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/sk/
* Translated using Weblate (Slovak)
Currently translated at 95.4% (560 of 587 strings)
Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/sk/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (280 of 280 strings)
Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/ja/
* Translated using Weblate (Indonesian)
Currently translated at 100.0% (75 of 75 strings)
Translation: Mastodon/Doorkeeper
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/doorkeeper/id/
* Translated using Weblate (Korean)
Currently translated at 100.0% (58 of 58 strings)
Translation: Mastodon/Preferences
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/simple_form/ko/
* Translated using Weblate (Korean)
Currently translated at 99.8% (586 of 587 strings)
Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/ko/
* Translated using Weblate (Korean)
Currently translated at 100.0% (280 of 280 strings)
Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/ko/
* Translated using Weblate (Esperanto)
Currently translated at 100.0% (280 of 280 strings)
Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/eo/
* Translated using Weblate (Arabic)
Currently translated at 82.9% (487 of 587 strings)
Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/ar/
* Translated using Weblate (Arabic)
Currently translated at 99.2% (278 of 280 strings)
Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/ar/
* Translated using Weblate (Arabic)
Currently translated at 87.3% (513 of 587 strings)
Translation: Mastodon/Backend
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/backend/ar/
* Translated using Weblate (Arabic)
Currently translated at 99.6% (279 of 280 strings)
Translation: Mastodon/React
Translate-URL: https://weblate.joinmastodon.org/projects/mastodon/frontend/ar/
* bundle exec i18n-tasks normalize && yarn manage:translations
* revert
6 years ago
Evgeny Petrov
b04f73ce66
Russian language updated ( #7005 )
* Russian language updated
* Small fixes for RU language
* bundle exec i18n-tasks normalize
6 years ago
luzi82
24611d8deb
i18n: update zh-HK translation ( #7004 )
* i18n: update zh-HK translation
* i18n: update zh-HK translation
* i18n-tasks normalize
6 years ago
Eugen Rochko
f890d2a766
Support all ActivityPub actor types ( #6997 )
Fix #6973
6 years ago
Eugen Rochko
33513753b9
Fix unpermitted parameters warning when generating pagination URLs ( #6995 )
6 years ago
David Underwood
123a343d11
[WIP] Enable custom emoji on account pages and in the sidebar ( #6124 )
Federate custom emojis with accounts
6 years ago
Emelia Smith
6a895e1ab3
Fix: Prevent submission using same logic as submit button disabling. ( #6993 )
This prevents submission through ctrl/cmd+enter when the submit button is disabled.
6 years ago
Marcin Mikołajczak
929f58f180
i18n: Update Polish translation ( #6985 )
Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
6 years ago
mayaeh
b7d633c1bb
i18n: Add Japanese translations for domain blocks ( #6979 )
* run yarn manage:translations
* Update Japanese translations for domain blocks.
6 years ago
unarist
fb3dc00dda
Ignore AbortError when cancelled sharing ( #6978 )
`navigator.share()` rejects Promise if user cancelled sharing, and it may
print it as an error on JavaScript console.
This patch ignores it and prints other errors on the console.
6 years ago
Thibaut Girka
b305e7452a
Add “public” pack to admin controller, as it is included in upstream admin layout
Fixes CW unfolding in moderation
6 years ago
ThibG
e573bb0990
Fix compatibility with PeerTube ( #6968 )
* Support fetching objects of convertible types by URL (fixes #6924 )
* Ignore invalid hashtags
6 years ago
Thibaut Girka
167a2ecde0
Fix migration page style
6 years ago
Thibaut Girka
48bcf4d6e8
[Glitch] Remove pointer events on the entire UI when a dropdown menu is open
Port 913a38111f
to glitch-soc
6 years ago
ThibG
a6c129ddbd
Add some UI for user-defined domain blocks ( #6628 )
* Keep list of blocked domains
Might be overkill, but I'm trying to follow the same logic as for blocked users
* Add basic domain block UI
* Add the domain blocks UI to Getting Started
* Fix undefined URL in `fetchDomainBlocks`
* Update all known users' domain_blocking relationship instead of just one's
6 years ago
Thibaut Girka
2871a82fcc
[Glitch] Place dropdown menu top if it is closer to the bottom of the viewport
Port f6a8d835d3
to glitch-soc
6 years ago
Thibaut Girka
218cc261d1
Add the domain blocks UI to Getting Started Misc
6 years ago
Thibaut Girka
afa813d71f
Add basic domain block UI
6 years ago
Thibaut Girka
482ad7d7c4
Keep list of blocked domains
Might be overkill, but I'm trying to follow the same logic as for blocked users
6 years ago
Thibaut Girka
79da0ad7a2
Update all known users' domain_blocking relationship instead of just one's
6 years ago
Thibaut Girka
937ace10d9
Fix undefined URL in `fetchDomainBlocks`
6 years ago
takayamaki
947eedcab2
update ja locale ( #6965 )
related https://github.com/tootsuite/mastodon/pull/6956
6 years ago
Emelia Smith
d1f34151ae
Feature: Direct message from menu ( #6956 )
* Implement ability to send direct messages from the user menu
* Implement message warning users that direct messages are visible to all mentioned users
* Update locales
6 years ago
Thibaut Girka
b5948044b3
[Glitch] Display unfollow button even if account moved
Backport 3987bd18a4
to glitch-soc
6 years ago
Thibaut Girka
a59c146bf8
[Glitch] Profile redirect notes
Port WebUI changes from 58cede4808
6 years ago
unarist
f1f846045f
Fix ReferenceError when Cache API is missing ( #6953 )
Cache API is not supported on Safari 11.0 / iOS 11.
Since those caching is optional, this patch simply ignores it.
6 years ago
unarist
41452e8302
Fix TypeError on follow notification ( #6950 )
`notification.status` may not be present, e.g. follow notification.
6 years ago
ThibG
9ed5eebd7c
Do not ignore unknown media attachments, only skip them ( #6948 )
That way, they are displayed in a list below the corresponding toot.
6 years ago
Thibaut Girka
7db431eac6
Fix attachment lists
6 years ago
Thibaut Girka
53eab4470d
Render toots with empty contents
This is necessary to display toots with media but otherwise no contents,
as glitch-soc displays the media as a child of StatusContent, unlike
Mastodon.
6 years ago
Yuto Tokunaga
5021c4e9ca
Add double-tap zoom functionary to `ZoomableImage` ( #6944 )
add <div.zoomable-image__margin/> to keep margin of the image on zooming
move setting `scrollLeft` and `scrollTop` of container from callback of
`setState` to `componentDidUpdate`
add 'hammerjs' package for touch gesture detection
rewrite `ZoomableImage` using 'hammerjs'
6 years ago
Rey Tucker
21b586436e
Remove ignored 'u' parameter on regexp ( #392 )
6 years ago
unarist
3523aa440b
Fix LoadMore on account media gallery ( #6933 )
max_id in the fetch request should be a status id, but media attachment id was used.
6 years ago
Thibaut Girka
88790b91de
[Glitch] Display AttachmentList in notifications
Port 77406d3a09
to glitch-soc
6 years ago
Thibaut Girka
3bc5452449
[Glitch] Display AttachmentList in timelines in compact style when media missing
Port 86a9de6753
to glitch-soc
6 years ago
unarist
f5ed5f3860
Clone response before put it to the cache ( #6932 )
`Response.prototype.clone()` must be called before the response used.
This fixes an error from ServiceWorker and failing to load image when the
image is not cached.
6 years ago
unarist
2f3ac14a43
Add missing null handling in notification reducer ( #6930 )
This patch adds null item (i.e. gap) handling on below functions to avoid TypeError.
* `filterNotifications` called on user mute/block
* `deleteByStatus` called on status deletion
6 years ago
Akihiko Odaki
ca42f9b0eb
Cache media ( #6902 )
6 years ago
Yuto Tokunaga
31e7b73084
fix #6846 ( #6914 )
6 years ago
Eugen Rochko
2a90da1837
Fix UniqueUsernameValidator comparison ( #6926 )
Comparison was downcasing only one side, therefore if previously
existing account had a non-lowercase spelling, it would be ignored
when checking for duplicates.
New rake task `mastodon:maintenance:find_duplicate_usernames` will
help find constraint violations that might have occured from the
presence of this bug.
Bump version to 2.3.3
6 years ago
Akihiko Odaki
40e5d2303b
Validate HTTP response length while receiving ( #6891 )
to_s method of HTTP::Response keeps blocking while it receives the whole
content, no matter how it is big. This means it may waste time to receive
unacceptably large files. It may also consume memory and disk in the
process. This solves the inefficency by checking response length while
receiving.
6 years ago
Stephen Burgess
18965cb0e6
feat(ShowMore): Add classname to show more/show less button ( #6904 )
6 years ago
Yuto Tokunaga
f691afaae9
Refactor scss ( #6913 )
* Refactoring scss
introduce scss variables for the media modal
fix css block structure corresponding to react components
fix flex layouts
remove background image of the loaded image on the media modal
* Fix typo
6 years ago
unarist
605a92b460
Fix moved account handling in IndexedDB feature ( #6915 )
* Fix stack overflow on importFetchedAccounts
When the account has moved property, it should process destination
account instead of source account itself.
* Set account id instead of account object for moved property
This restores "foo has moved to" indication on account view, and
fixes `reblog` index on `accounts` object store.
6 years ago
Marcin Mikołajczak
85a395fab6
i18n: Update Polish translation ( #6903 )
Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
6 years ago
Akihiko Odaki
cbf97c03bb
Allow clients to fetch notifications made while they were offline ( #6886 )
6 years ago