Commit graph

4707 commits

Author SHA1 Message Date
Akihiko Odaki
38d5aa3073 Use contenthash for ExtractTextWebpackPlugin ()
[hash] is not documented.
2017-10-27 23:54:20 +09:00
nullkal
0a9cc96cdc Feature: Unlisted custom emojis () 2017-10-27 16:11:30 +02:00
puckipedia
2c06b21883 Allow ActivityPub Note's tag and attachment to be single objects () 2017-10-27 16:10:36 +02:00
unarist
75776cf237 Optimize FixReblogsInFeeds migration ()
We have changed how we store reblogs in the redis for bigint IDs. This process is done by 1) scan all entries in users feed, and 2) re-store reblogs by 3 write commands.

However, this operation is really slow for large instances. e.g. 1hrs on friends.nico (w/ 50k users). So I have tried below tweaks.

* It checked non-reblogs by `entry[0] == entry[1]`, but this condition won't work because `entry[0]` is String while `entry[1]` is Float. Changing `entry[0].to_i == entry[1]` seems work.
  -> about 4-20x faster (feed with less reblogs will be faster)
* Write operations can be batched by pipeline
  -> about 6x faster
* Wrap operation by Lua script and execute by EVALSHA command. This really reduces packets between Ruby and Redis.
  -> about 3x faster

I've taken Lua script way, though doing other optimizations may be enough.
2017-10-27 16:10:22 +02:00
erin
fe11a72c0b Fix copying emojos: redirect to the page you were on () 2017-10-26 23:44:24 +09:00
りんすき
e6f7ccb786 Fix column design broken with very long title ()
* Fix 

* fix not beautiful code

* fix broken design with mobile view

* remove no longer needed code
2017-10-26 22:52:48 +09:00
unarist
4472c5723a Fix Cocaine::ExitStatusError when upload small non-animated GIF ()
Looks like copied tempfile need to be flushed before further processing. This issue won't happen if the uploaded file has enough file size.
2017-10-26 22:48:35 +09:00
Nolan Lawson
afe5176ee8 Remove translateZ(0) on modal overlay () 2017-10-26 22:46:50 +09:00
Ratmir Karabut
51d4add08d Update Russian translation ()
* Add Russian translation (ru)

* Fix a missing comma

* Fix the wording for better consistency

* Update Russian translation

* Arrange Russian setting alphabetically

* Fix syntax error

* Update Russian translation

* Fix formatting error

* Update Russian translation

* Update Russian translation

* Update ru.jsx

* Fix syntax error

* Remove two_factor_auth.warning (appears obsolete)

* Add missing strings in ru.yml

A lot of new strings translated, especially for the newly added admin section

* Fix translation consistency

* Update Russian translation

* Update Russian translation (pluralizations)

* Update Russian translation

* Update Russian translation

* Update Russian translation (pin)

* Update Russian translation (account deletion)

* Fix extra line

* Update Russian translation (sessions)

* Update Russian translation

* Update Russian translation

* Fix merge conflicts (revert)

* Update Russian translation

* Update Russian translation (fix)

* Update Russian translation (fix quotes)

* Update Russian translation (fix quotes)

* Update Russian translation (fix)

* Update Russian translation

* Add quotes

* bundle exec i18n-tasks normalize
2017-10-26 00:21:58 +09:00
Anna e só
93255b003f l10n: PT-BR translation updated () 2017-10-25 23:11:03 +09:00
Olivier Nicole
fe8646f078 Complete Esperanto translation () 2017-10-25 22:38:37 +09:00
Marcin Mikołajczak
67992e1b7e i18n: Update Polish Translation () 2017-10-22 08:34:39 +09:00
Nolan Lawson
1a8b2157d0 Remove unnecessary translateZ(0) when doing scale() () 2017-10-19 18:27:55 +02:00
masarakki
2fa2051ecf remove-duplicated-jest-config () 2017-10-19 13:51:38 +02:00
Sho Kusano
85e47a4423 Suppress type error(not a function) on calling fastSeek () 2017-10-18 17:13:51 +02:00
Eugen Rochko
b222a9d5ee Bump version to 2.0.0 🐘 2017-10-18 13:53:56 +02:00
Renato "Lond" Cerqueira
a761e02bd1 Fix pt-BR translation strings related to advanced search. () 2017-10-18 13:53:17 +02:00
Technowix
8eea3bd6d8 Revert for FR ()
As said here https://github.com/tootsuite/mastodon/pull/5438 the point of shortening the timestamp is legit, and after some time of adaptation no mistakes can be mades.
2017-10-18 13:51:30 +02:00
Håkan Eriksson
ecef91e5ca Some typos and supplementation in sentence structures ()
* Swedish file added

* Swedish file added

* Swedish file updated

* Swedish languagefile added

* Add Swedish translation

* Add Swedish translation

* Started the Swedish translation

* Added Swedish lang settings

* Updating Swedish language

* Updating Swedish language

* Updating Swedish language

* Updating Swedish language

* Updating Swedish language

* Updating Swedish language

* Swedish language completed and added

* Swedish language Simple_form added

* Swedish language Divise added

* Swedish language doorkeeper added

* Swedish language - now all file complete

* Swedish - Typos and supplementation in sentence structure

* Update simple_form.sv.yml

* Update sv.yml

* Update sv.yml

Rearranged the alphabetical order.
2017-10-18 13:50:52 +02:00
Yamagishi Kazutoshi
0d618ce271 Run i18n-tasks checked-normalized in Travis CI () 2017-10-18 11:57:02 +02:00
Yamagishi Kazutoshi
8c97598548 Enable coverage for Jest () 2017-10-18 11:39:36 +02:00
JohnD28
8e386ca547 fr.json typo (realtive time) ()
Typo correction : https://fr.wikipedia.org/wiki/Heure#Typographie
2017-10-18 16:47:14 +09:00
Eugen Rochko
cb48c98e02 Bump version to 2.0.0rc4 2017-10-17 23:16:35 +02:00
Jeroen
6235b8a8b1 Dutch: A few strings I found last minute ()
* Dutch: A few strings I found last minute

* Update simple_form.nl.yml
2017-10-17 23:15:40 +02:00
YaQ
cd59b66680 Make theme directory and Rename application.scss ()
* Rename application.scss

* Move to 'default' directory

* Follow review

Move directory, and Rename "mastodon".

* Revert rename

* undo removal of newline
2017-10-18 05:20:07 +09:00
Eugen Rochko
8eee4b3d35 When unreblog arrives over streaming API, just delete in UI () 2017-10-17 22:17:02 +02:00
JeanGauthier
a18201f690 i18n better wording (OC/CA/FR) + string added in FR ()
* Update oc.json

* Update fr.json

* Update ca.json

* Update fr.json

* Update simple_form.fr.yml

* Update ca.json

* Update fr.json

* Update oc.json

* Update oc.json

* Update fr.json
2017-10-17 21:49:39 +02:00
Nolan Lawson
845b2f4ad9 Fix scrolling of dropdown when offscreen () 2017-10-17 20:38:16 +02:00
Eugen Rochko
24155c5890 Fix unwanted content warning gap in CSS ()
Fix 
2017-10-17 20:07:44 +02:00
Eugen Rochko
fef7c55bce When status is fetched instead of delivered, do not stream it () 2017-10-17 20:05:21 +02:00
unarist
8b2ee20dfa Don't capture scheme-less URLs in the status ()
Specifically, this fixes status length calculation to be same as JS side.

BTW, since this pattern used in not only preview card fetching, we
should extract it (with twitter-regex?) and write tests I think.
2017-10-17 18:32:25 +02:00
JeanGauthier
e1efabf979 i18n update () in OC/CA/FR/ES ()
* Update oc.json

* Update ca.json

* Update fr.json

* Update es.json
2017-10-17 13:03:28 +02:00
unarist
90fb04f1bb Fix React warning about tabIndex on status with CW () 2017-10-17 13:03:12 +02:00
Jakob Kramer
15ae7fe6b2 Update German translation () 2017-10-17 12:02:47 +02:00
Yamagishi Kazutoshi
d7063885bc Add Japanese translations ()
* yarn manage:translations

* Add Japanese translation for 

* Add Japanese translation for 
2017-10-17 11:47:05 +02:00
Yamagishi Kazutoshi
5e6b51e2c9 Normalize locale files () 2017-10-17 11:45:59 +02:00
masarakki
f76a224328 use-DB_NAME-in-development () 2017-10-17 11:45:37 +02:00
aschmitz
4dbdda6b89 Clean up reblog tracking keys, related improvements ()
* Clean up reblog-tracking sets from FeedManager

Builds on , with a few minor optimizations and cleanup of sets
after they are no longer needed.

* Update tests, fix multiply-reblogged case

Previously, we would have lost the fact that a given status was
reblogged if the displayed reblog of it was removed, now we don't.

Also added tests to make sure FeedManager#trim cleans up our reblog
tracking keys, fixed up FeedCleanupScheduler to use the right loop,
and fixed the test for it.
2017-10-17 11:45:06 +02:00
Håkan Eriksson
c06052b7cf Swedish translation ()
* Swedish file added

* Swedish file added

* Swedish file updated

* Swedish languagefile added

* Add Swedish translation

* Add Swedish translation

* Started the Swedish translation

* Added Swedish lang settings

* Updating Swedish language

* Updating Swedish language

* Updating Swedish language

* Updating Swedish language

* Updating Swedish language

* Updating Swedish language

* Swedish language completed and added

* Swedish language Simple_form added

* Swedish language Divise added

* Swedish language doorkeeper added

* Swedish language - now all file complete
2017-10-17 13:41:36 +09:00
Jeroen
289723dd1c Small update Dutch (nl) strings ()
* Update Dutch strings

* Update Dutch
2017-10-17 01:00:23 +02:00
Nolan Lawson
d7b8208a37 Fix reduced motion breaking public galleries () 2017-10-16 21:08:01 +02:00
Eugen Rochko
7571d79c8d Keep references to all reblogs of a status on home feed ()
* Keep references to all reblogs of a status on home feed

When inserting reblog: Add to set of reblogs of this status on
the feed, if original status was present in the feed, add it to
that set as well.

When removing a reblog: Remove it from that set. Take random
remaining item from the set. If one exists, re-insert it into feed,
otherwise do not re-insert anything.

Fix 

* When original is removed, toss out reblog references
2017-10-16 20:44:31 +02:00
Daigo 3 Dango
6645e8ed40 Fix typo in a db:rollback script ()
Reported at
https://don.inux39.me/@inux39/1406082
https://don.inux39.me/@inux39/1406134
2017-10-16 20:29:49 +02:00
Eugen Rochko
7603119d3a Bump version to 2.0.0rc3 2017-10-16 16:29:00 +02:00
Eugen Rochko
8a276b4d43 Ensure that feed renegeration restores non-zero items ()
Fix 

Ordering the home timeline query by account_id meant that the first
100 items belonged to a single account. There was also no reason to
reverse-iterate over the statuses. Assuming the user accesses the
feed halfway-through, it's better to have recent statuses already
available at the top. Therefore working from newer->older is ideal.

If the algorithm ends up filtering all items out during last-mile
filtering, repeat again a page further. The algorithm terminates
when either at least one item has been added, or if the database
query returns nothing (end of data reached)
2017-10-16 16:08:51 +02:00
Eugen Rochko
55642feb4b Filter out duplicate IDs in timelines reducer ()
Possibly the cause of , 
2017-10-16 15:59:30 +02:00
unarist
1fa6d20981 Fix un-reblogged status being at wrong position in the home timeline ()
We've changed un-reblogging behavior when we implement Snowflake, to insert un-reblogged status at the position reblogging status existed.

However, our API expects home timeline is ordered by status ids, and max_id/since_id filters by zset score. Due to this, un-reblogged status appears as a last item of result set, and timeline expansion may skips many statuses.

So this reverts that change...reblogged status inserted at corresponding position to its id.
2017-10-16 15:58:23 +02:00
voidSatisfaction
7ae6d55b8a Add up-to-date korean translation on client ()
* chore: add Korean translation for client

* fix: change unlisted and embed Korean words
2017-10-16 14:39:28 +02:00
KY
e1357265ed Fix - disable retweet link for followers only toot ()
* Fix  - disable retweet link for followers only toot

* Hide reblog count when it is a direct message
2017-10-16 14:10:12 +02:00
Marcin Mikołajczak
8953c2a918 i18n: Update Polish translation ()
Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
2017-10-16 14:09:51 +02:00