]> cat aescling's git repositories - mastodon.git/log
mastodon.git
8 years agoAlso filter notifications containing muted keywords.
David Yip [Tue, 24 Oct 2017 23:51:27 +0000 (18:51 -0500)]
Also filter notifications containing muted keywords.

8 years agoOverride Action View name inference in settings/keyword_mutes.
David Yip [Tue, 24 Oct 2017 23:40:28 +0000 (18:40 -0500)]
Override Action View name inference in settings/keyword_mutes.

Glitch::KeywordMute's name is inferred as glitch_keyword_mutes, and in
templates this turns into e.g. settings/glitch/keyword_mutes.  Going
along with this convention means a lot of file movement, though, and for
a UI that's as temporary and awkward as this one I think it's less
effort to slap a bunch of as: options everywhere.

We'll do the Right Thing when we build out the API and frontend UI.

8 years agoFix example description.
David Yip [Tue, 24 Oct 2017 23:33:02 +0000 (18:33 -0500)]
Fix example description.

This example actually checks matches at the end of a string.

8 years agoSwitch to Regexp.union for building the mute expression.
David Yip [Tue, 24 Oct 2017 23:31:34 +0000 (18:31 -0500)]
Switch to Regexp.union for building the mute expression.

Also make the keyword-building methods private: they always probably
should have been private, but now I have encoded enough fun and games
into them that it now seems wrong for them to *not* be private.

8 years agoOnly cache the regex text, not the regex itself.
David Yip [Tue, 24 Oct 2017 00:31:59 +0000 (19:31 -0500)]
Only cache the regex text, not the regex itself.

It is possible to cache a Regexp object, but I'm not sure what happens
if e.g. that object remains in cache across two different Ruby versions.
Caching a string seems to raise fewer questions.

8 years agoKeywordMute matcher: more closely mimic Regexp#=~ behavior.
David Yip [Sun, 22 Oct 2017 06:11:17 +0000 (01:11 -0500)]
KeywordMute matcher: more closely mimic Regexp#=~ behavior.

Regexp#=~ returns nil if it does not match.  An empty mute set does not
match any status, so KeywordMute::Matcher#=~ ought to return nil also.

8 years agoAddress unused translation errors.
David Yip [Sun, 22 Oct 2017 06:05:56 +0000 (01:05 -0500)]
Address unused translation errors.

8 years agoUse current_account from ApplicationController.
David Yip [Sun, 22 Oct 2017 06:02:52 +0000 (01:02 -0500)]
Use current_account from ApplicationController.

This avoids copy-pasting definitions of set_account.

8 years agoDon't add \b to whole-word keywords that don't start with word characters.
David Yip [Sun, 22 Oct 2017 05:24:32 +0000 (00:24 -0500)]
Don't add \b to whole-word keywords that don't start with word characters.

Ditto for ending with \b.

Consider muting the phrase "(hot take)".  I stipulate it is reasonable
to enter this with the default "match whole word" behavior.  Under the
old behavior, this would be encoded as

    \b\(hot\ take\)\b

However, if \b is before the first character in the string and the first
character in the string is not a word character, then the match will
fail.  Ditto for after.  In our example, "(" is not a word character, so
this will not match statuses containing "(hot take)", and that's a very
surprising behavior.

To address this, we only add leading and trailing \b to keywords that
start or end with word characters.

8 years agokeyword mutes: also check spoiler (CW) text and reblogged statuses.
David Yip [Sun, 22 Oct 2017 05:23:21 +0000 (00:23 -0500)]
keyword mutes: also check spoiler (CW) text and reblogged statuses.

8 years agoApply keyword mutes to reblogs.
David Yip [Sat, 21 Oct 2017 20:44:47 +0000 (15:44 -0500)]
Apply keyword mutes to reblogs.

8 years agoMove KeywordMute into Glitch namespace.
David Yip [Sat, 21 Oct 2017 19:47:17 +0000 (14:47 -0500)]
Move KeywordMute into Glitch namespace.

There are two motivations for this:

1. It looks like we're going to add other features that require
   server-side storage (e.g. user notes).

2. Namespacing glitchsoc modifications is a good idea anyway: even if we
   do not end up doing (1), if upstream introduces a keyword-mute feature
   that also uses a "KeywordMute" model, we can avoid some merge
   conflicts this way and work on the more interesting task of
   choosing which implementation to use.

8 years agoFill in create, edit, update, and destroy for keyword mutes interface.
David Yip [Fri, 20 Oct 2017 20:12:45 +0000 (15:12 -0500)]
Fill in create, edit, update, and destroy for keyword mutes interface.

Also add a destroy-all action, which can be useful if you're flushing an
old list entirely to start a new one.

8 years agoAllow keywords to match either substrings or whole words.
David Yip [Mon, 16 Oct 2017 00:49:22 +0000 (19:49 -0500)]
Allow keywords to match either substrings or whole words.

Word-boundary matching only works as intended in English and languages
that use similar word-breaking characters; it doesn't work so well in
(say) Japanese, Chinese, or Thai.  It's unacceptable to have a feature
that doesn't work as intended for some languages.  (Moreso especially
considering that it's likely that the largest contingent on the Mastodon
bit of the fediverse speaks Japanese.)

There are rules specified in Unicode TR29[1] for word-breaking across
all languages supported by Unicode, but the rules deliberately do not
cover all cases.  In fact, TR29 states

    For example, reliable detection of word boundaries in languages such
    as Thai, Lao, Chinese, or Japanese requires the use of dictionary
    lookup, analogous to English hyphenation.

So we aren't going to be able to make word detection work with regexes
within Mastodon (or glitchsoc).  However, for a first pass (even if it's
kind of punting) we can allow the user to choose whether they want word
or substring detection and warn about the limitations of this
implementation in, say, docs.

[1]: https://unicode.org/reports/tr29/
     https://web.archive.org/web/20171001005125/https://unicode.org/reports/tr29/

8 years agoSpike out index and new views for keyword mutes controller.
David Yip [Sun, 15 Oct 2017 09:51:42 +0000 (04:51 -0500)]
Spike out index and new views for keyword mutes controller.

8 years agoSet up /settings/keyword_mutes. #164.
David Yip [Sun, 15 Oct 2017 08:17:33 +0000 (03:17 -0500)]
Set up /settings/keyword_mutes.  #164.

This should eventually be accessible via the API and the web frontend,
but I find it easier to set up an editing interface using Rails
templates and the like.  We can always take it out if it turns out we
don't need it.

8 years agoInvalidate cached matcher objects on KeywordMute commit. #164.
David Yip [Sun, 15 Oct 2017 07:52:53 +0000 (02:52 -0500)]
Invalidate cached matcher objects on KeywordMute commit.  #164.

8 years agoUse more idiomatic string concatentation. #164.
David Yip [Sun, 15 Oct 2017 07:32:03 +0000 (02:32 -0500)]
Use more idiomatic string concatentation.  #164.

The intent of the previous concatenation was to minimize object
allocations, which can end up being a slow killer.  However, it turns
out that under MRI 2.4.x, the shove-strings-in-an-array-and-join method
is not only arguably more common but (in this particular case) actually
allocates *fewer* objects than the string concatenation.

Or, at least, that's what I gather by running this:

    words = %w(palmettoes nudged hibernation bullish stockade's tightened Hades
    Dixie's formalize superego's commissaries Zappa's viceroy's apothecaries
    tablespoonful's barons Chennai tollgate ticked expands)

    a = Account.first

    KeywordMute.transaction do
      words.each { |w| KeywordMute.create!(keyword: w, account: a) }

      GC.start

      s1 = GC.stat

      re = String.new.tap do |str|
        scoped = KeywordMute.where(account: a)
        keywords = scoped.select(:id, :keyword)
        count = scoped.count

        keywords.find_each.with_index do |kw, index|
          str << Regexp.escape(kw.keyword.strip)
          str << '|' if index < count - 1
        end
      end

      s2 = GC.stat

      puts s1.inspect, s2.inspect

      raise ActiveRecord::Rollback
    end

vs this:

    words = %w( palmettoes nudged hibernation bullish stockade's tightened Hades Dixie's
    formalize superego's commissaries Zappa's viceroy's apothecaries tablespoonful's
    barons Chennai tollgate ticked expands
    )

    a = Account.first

    KeywordMute.transaction do
      words.each { |w| KeywordMute.create!(keyword: w, account: a) }

      GC.start

      s1 = GC.stat

      re = [].tap do |arr|
        KeywordMute.where(account: a).select(:keyword, :id).find_each do |m|
          arr << Regexp.escape(m.keyword.strip)
        end
      end.join('|')

      s2 = GC.stat

      puts s1.inspect, s2.inspect

      raise ActiveRecord::Rollback
    end

Using rails r, here is a comparison of the total_allocated_objects and
malloc_increase_bytes GC stat data:

                 total_allocated_objects        malloc_increase_bytes
string concat    3200241 -> 3201428 (+1187)     1176 -> 45216 (44040)
array join       3200380 -> 3201299 (+919)      1176 -> 36448 (35272)

8 years agoMake use of the regex attr_reader. #164.
David Yip [Sun, 15 Oct 2017 01:45:14 +0000 (20:45 -0500)]
Make use of the regex attr_reader.  #164.

It would also have been valid to get rid of the attr_reader, but I like
being able to reach inside KeywordMute::Matcher without resorting to
instance_variable_get tomfoolery.

8 years agoFix case-insensitive match scenario; test some word ornamentation. #164.
David Yip [Sun, 15 Oct 2017 01:41:52 +0000 (20:41 -0500)]
Fix case-insensitive match scenario; test some word ornamentation.  #164.

8 years agoRework KeywordMute interface to use a matcher object; spec out matcher. #164.
David Yip [Sun, 15 Oct 2017 01:36:53 +0000 (20:36 -0500)]
Rework KeywordMute interface to use a matcher object; spec out matcher.  #164.

A matcher object that builds a match from KeywordMute data and runs it
over text is, in my view, one of the easier ways to write examples for
this sort of thing.

8 years agoSpec out KeywordMute interface. #164.
David Yip [Sat, 14 Oct 2017 07:28:20 +0000 (02:28 -0500)]
Spec out KeywordMute interface.  #164.

8 years agoAdd KeywordMute model.
David Yip [Mon, 9 Oct 2017 22:28:28 +0000 (17:28 -0500)]
Add KeywordMute model.

Gist of the proposed keyword mute implementation:

Keyword mutes are represented server-side as one keyword per record.
For each account, there exists a keyword regex that is generated as one
big alternation of all keywords.  This regex is cached (in Redis, I
guess) so we can quickly get it when filtering in FeedManager.

8 years agoCompose buttons bar redesign + generalize dropdown (#194)
Ondřej Hruška [Sat, 21 Oct 2017 18:24:53 +0000 (20:24 +0200)]
Compose buttons bar redesign + generalize dropdown (#194)

* Generalize compose dropdown for re-use

* wip stuffs

* new tootbox look and removed old doodle button files

* use the house icon for ...

8 years agohide mentions of muted accounts (in home col) (#190)
beatrix [Fri, 20 Oct 2017 14:49:54 +0000 (10:49 -0400)]
hide mentions of muted accounts (in home col) (#190)

* hide mentions of muted accounts (in home col)

also cleans up some old crap

* add test

8 years agoMerge pull request #191 from glitch-soc/garglamel-yaml
beatrix [Thu, 19 Oct 2017 23:29:52 +0000 (19:29 -0400)]
Merge pull request #191 from glitch-soc/garglamel-yaml

ƔAML update

8 years agoUpdates to bio metadata script
kibigo! [Thu, 19 Oct 2017 23:11:53 +0000 (16:11 -0700)]
Updates to bio metadata script

8 years agoMerge pull request #189 from glitch-soc/scrollable-compose-area
beatrix [Thu, 19 Oct 2017 16:28:47 +0000 (12:28 -0400)]
Merge pull request #189 from glitch-soc/scrollable-compose-area

 Make the compose area optionally scrollable

8 years agoMake the compose area optionally scrollable.
David Yip [Thu, 19 Oct 2017 15:59:50 +0000 (10:59 -0500)]
Make the compose area optionally scrollable.

On desktop, the compose text box grows to accommodate the content.  On
mobile, the text box does not grow to accommodate text context, but does
grow to accommodate images.  It is possible in both cases to overflow
the available area, which makes accessing other UI elements (e.g.
visibility setttings) difficult.

This commit makes the compose area optionally scrollable, which allows
those UI elements to remain available even if they go off-screen.

8 years agoMerge pull request #185 from glitch-soc/fix-null-status
David Yip [Wed, 18 Oct 2017 22:01:31 +0000 (17:01 -0500)]
Merge pull request #185 from glitch-soc/fix-null-status

workaround for null status

8 years agoMerge pull request #188 from glitch-soc/merge-upstream-2-0-0
beatrix [Wed, 18 Oct 2017 21:57:42 +0000 (17:57 -0400)]
Merge pull request #188 from glitch-soc/merge-upstream-2-0-0

Merge with upstream v2.0.0

8 years agoformatting fix for eslint
Ondřej Hruška [Wed, 18 Oct 2017 21:44:06 +0000 (23:44 +0200)]
formatting fix for eslint

8 years agoRemove unused filesAttached property.
David Yip [Wed, 18 Oct 2017 18:20:45 +0000 (13:20 -0500)]
Remove unused filesAttached property.

8 years agoUpdate stylesheet imports in glitch components.
David Yip [Wed, 18 Oct 2017 16:52:34 +0000 (11:52 -0500)]
Update stylesheet imports in glitch components.

Commit 6e5471947438fc5883e72b8184663564ffadee28 moved the Mastodon
variables and mixins deeper in the directory hierarchy; this commit
brings the glitch components in line with that change.

8 years agoMerge tag 'v2.0.0' into gs-master
David Yip [Wed, 18 Oct 2017 16:52:04 +0000 (11:52 -0500)]
Merge tag 'v2.0.0' into gs-master

8 years agoSuppress type error(not a function) on calling fastSeek (#5452)
Sho Kusano [Wed, 18 Oct 2017 15:13:51 +0000 (00:13 +0900)]
Suppress type error(not a function) on calling fastSeek (#5452)

8 years agoBump version to 2.0.0 🐘
Eugen Rochko [Wed, 18 Oct 2017 11:53:56 +0000 (13:53 +0200)]
Bump version to 2.0.0 🐘

8 years agoFix pt-BR translation strings related to advanced search. (#5449)
Renato "Lond" Cerqueira [Wed, 18 Oct 2017 11:53:17 +0000 (09:53 -0200)]
Fix pt-BR translation strings related to advanced search. (#5449)

8 years agoRevert #5438 for FR (#5450)
Technowix [Wed, 18 Oct 2017 11:51:30 +0000 (13:51 +0200)]
Revert #5438 for FR (#5450)

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.

8 years agoSome typos and supplementation in sentence structures (#5441)
Håkan Eriksson [Wed, 18 Oct 2017 11:50:52 +0000 (13:50 +0200)]
Some typos and supplementation in sentence structures (#5441)

* 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.

8 years agoRun `i18n-tasks checked-normalized` in Travis CI (#5443)
Yamagishi Kazutoshi [Wed, 18 Oct 2017 09:57:02 +0000 (18:57 +0900)]
Run `i18n-tasks checked-normalized` in Travis CI (#5443)

8 years agoEnable coverage for Jest (#5442)
Yamagishi Kazutoshi [Wed, 18 Oct 2017 09:39:36 +0000 (18:39 +0900)]
Enable coverage for Jest (#5442)

8 years agofr.json typo (realtive time) (#5447)
JohnD28 [Wed, 18 Oct 2017 07:47:14 +0000 (09:47 +0200)]
fr.json typo (realtive time) (#5447)

Typo correction : https://fr.wikipedia.org/wiki/Heure#Typographie

8 years agoBump version to 2.0.0rc4
Eugen Rochko [Tue, 17 Oct 2017 21:16:35 +0000 (23:16 +0200)]
Bump version to 2.0.0rc4

8 years agoDutch: A few strings I found last minute (#5440)
Jeroen [Tue, 17 Oct 2017 21:15:40 +0000 (23:15 +0200)]
Dutch: A few strings I found last minute (#5440)

* Dutch: A few strings I found last minute

* Update simple_form.nl.yml

8 years agoMake theme directory and Rename application.scss (#5336)
YaQ [Tue, 17 Oct 2017 20:20:07 +0000 (05:20 +0900)]
Make theme directory and Rename application.scss (#5336)

* Rename application.scss

* Move to 'default' directory

* Follow review

Move directory, and Rename "mastodon".

* Revert rename

* undo removal of newline

8 years agoWhen unreblog arrives over streaming API, just delete in UI (#5439)
Eugen Rochko [Tue, 17 Oct 2017 20:17:02 +0000 (22:17 +0200)]
When unreblog arrives over streaming API, just delete in UI (#5439)

8 years agoi18n better wording (OC/CA/FR) + string added in FR (#5438)
JeanGauthier [Tue, 17 Oct 2017 19:49:39 +0000 (21:49 +0200)]
i18n better wording (OC/CA/FR) + string added in FR (#5438)

* 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

8 years agoFix scrolling of dropdown when offscreen (#5434)
Nolan Lawson [Tue, 17 Oct 2017 18:38:16 +0000 (11:38 -0700)]
Fix scrolling of dropdown when offscreen (#5434)

8 years agoFix unwanted content warning gap in CSS (#5436)
Eugen Rochko [Tue, 17 Oct 2017 18:07:44 +0000 (20:07 +0200)]
Fix unwanted content warning gap in CSS (#5436)

Fix #5356

8 years agoWhen status is fetched instead of delivered, do not stream it (#5437)
Eugen Rochko [Tue, 17 Oct 2017 18:05:21 +0000 (20:05 +0200)]
When status is fetched instead of delivered, do not stream it (#5437)

8 years agoDon't capture scheme-less URLs in the status (#5435)
unarist [Tue, 17 Oct 2017 16:32:25 +0000 (01:32 +0900)]
Don't capture scheme-less URLs in the status (#5435)

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.

8 years agoi18n update (#5427) in OC/CA/FR/ES (#5431)
JeanGauthier [Tue, 17 Oct 2017 11:03:28 +0000 (13:03 +0200)]
i18n update (#5427) in OC/CA/FR/ES (#5431)

* Update oc.json

* Update ca.json

* Update fr.json

* Update es.json

8 years agoFix React warning about tabIndex on status with CW (#5432)
unarist [Tue, 17 Oct 2017 11:03:12 +0000 (20:03 +0900)]
Fix React warning about tabIndex on status with CW (#5432)

8 years agoUpdate German translation (#5425)
Jakob Kramer [Tue, 17 Oct 2017 10:02:47 +0000 (12:02 +0200)]
Update German translation (#5425)

8 years agoAdd Japanese translations (#5427)
Yamagishi Kazutoshi [Tue, 17 Oct 2017 09:47:05 +0000 (18:47 +0900)]
Add Japanese translations (#5427)

* yarn manage:translations

* Add Japanese translation for #5410

* Add Japanese translation for #5393

8 years agoNormalize locale files (#5429)
Yamagishi Kazutoshi [Tue, 17 Oct 2017 09:45:59 +0000 (18:45 +0900)]
Normalize locale files (#5429)

8 years agouse-DB_NAME-in-development (#5430)
masarakki [Tue, 17 Oct 2017 09:45:37 +0000 (18:45 +0900)]
use-DB_NAME-in-development (#5430)

8 years agoClean up reblog tracking keys, related improvements (#5428)
aschmitz [Tue, 17 Oct 2017 09:45:06 +0000 (04:45 -0500)]
Clean up reblog tracking keys, related improvements (#5428)

* Clean up reblog-tracking sets from FeedManager

Builds on #5419, 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.

8 years agoSwedish translation (#5406)
Håkan Eriksson [Tue, 17 Oct 2017 04:41:36 +0000 (06:41 +0200)]
Swedish translation (#5406)

* 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

8 years agoSmall update Dutch (nl) strings (#5424)
Jeroen [Mon, 16 Oct 2017 23:00:23 +0000 (01:00 +0200)]
Small update Dutch (nl) strings (#5424)

* Update Dutch strings

* Update Dutch

8 years agoFix dual toot button wrong behavior after compose re-design
Ondřej Hruška [Mon, 16 Oct 2017 21:32:13 +0000 (23:32 +0200)]
Fix dual toot button wrong behavior after compose re-design

8 years agoworkaround for null status
Ondřej Hruška [Mon, 16 Oct 2017 21:09:39 +0000 (23:09 +0200)]
workaround for null status

8 years agoMerge pull request #184 from tootsuite/master
beatrix [Mon, 16 Oct 2017 21:05:42 +0000 (17:05 -0400)]
Merge pull request #184 from tootsuite/master

Fix reduced motion breaking public galleries (#5423)

8 years agoMerge pull request #182 from glitch-soc/wide-tootbox-panel
David Yip [Mon, 16 Oct 2017 20:49:22 +0000 (15:49 -0500)]
Merge pull request #182 from glitch-soc/wide-tootbox-panel

Full-width tootbox panel to make room for buttons

8 years agoMerge pull request #181 from glitch-soc/upstream-merge-again
David Yip [Mon, 16 Oct 2017 20:46:12 +0000 (15:46 -0500)]
Merge pull request #181 from glitch-soc/upstream-merge-again

Merge upstream, pull in fixes for tootsuite/mastodon#{5409,5417}

8 years agosatisfy eslint and jest
Ondřej Hruška [Mon, 16 Oct 2017 20:24:44 +0000 (22:24 +0200)]
satisfy eslint and jest

8 years agorem a comment
Ondřej Hruška [Mon, 16 Oct 2017 20:12:38 +0000 (22:12 +0200)]
rem a comment

8 years agodouble-decker tootbox
Ondřej Hruška [Mon, 16 Oct 2017 20:10:14 +0000 (22:10 +0200)]
double-decker tootbox

8 years agoMerge remote-tracking branch 'upstream/master' into upstream-merge-again
Ondřej Hruška [Mon, 16 Oct 2017 19:13:47 +0000 (21:13 +0200)]
Merge remote-tracking branch 'upstream/master' into upstream-merge-again

8 years agofix some lint errors
Ondřej Hruška [Mon, 16 Oct 2017 19:13:34 +0000 (21:13 +0200)]
fix some lint errors

8 years agoFix reduced motion breaking public galleries (#5423)
Nolan Lawson [Mon, 16 Oct 2017 19:08:01 +0000 (12:08 -0700)]
Fix reduced motion breaking public galleries (#5423)

8 years agoKeep references to all reblogs of a status on home feed (#5419)
Eugen Rochko [Mon, 16 Oct 2017 18:44:31 +0000 (20:44 +0200)]
Keep references to all reblogs of a status on home feed (#5419)

* 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 #4210

* When original is removed, toss out reblog references

8 years agoFix typo in a db:rollback script (#5422)
Daigo 3 Dango [Mon, 16 Oct 2017 18:29:49 +0000 (08:29 -1000)]
Fix typo in a db:rollback script (#5422)

Reported at
https://don.inux39.me/@inux39/1406082
https://don.inux39.me/@inux39/1406134

8 years agoMerge remote-tracking branch 'upstream/master' into upstream-merge-again
David Yip [Mon, 16 Oct 2017 14:54:16 +0000 (09:54 -0500)]
Merge remote-tracking branch 'upstream/master' into upstream-merge-again

8 years agoBump version to 2.0.0rc3
Eugen Rochko [Mon, 16 Oct 2017 14:29:00 +0000 (16:29 +0200)]
Bump version to 2.0.0rc3

8 years agoMerge remote-tracking branch 'upstream/master' into gs-master
David Yip [Mon, 16 Oct 2017 14:27:01 +0000 (09:27 -0500)]
Merge remote-tracking branch 'upstream/master' into gs-master

8 years agoMerge remote-tracking branch 'upstream/master' into gs-master
David Yip [Mon, 16 Oct 2017 14:23:59 +0000 (09:23 -0500)]
Merge remote-tracking branch 'upstream/master' into gs-master

8 years agoEnsure that feed renegeration restores non-zero items (#5409)
Eugen Rochko [Mon, 16 Oct 2017 14:08:51 +0000 (16:08 +0200)]
Ensure that feed renegeration restores non-zero items (#5409)

Fix #5398

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)

8 years agoFilter out duplicate IDs in timelines reducer (#5417)
Eugen Rochko [Mon, 16 Oct 2017 13:59:30 +0000 (15:59 +0200)]
Filter out duplicate IDs in timelines reducer (#5417)

Possibly the cause of #5379, #5377

8 years agoFix un-reblogged status being at wrong position in the home timeline (#5418)
unarist [Mon, 16 Oct 2017 13:58:23 +0000 (22:58 +0900)]
Fix un-reblogged status being at wrong position in the home timeline (#5418)

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.

8 years agoAdd up-to-date korean translation on client (#5402)
voidSatisfaction [Mon, 16 Oct 2017 12:39:28 +0000 (21:39 +0900)]
Add up-to-date korean translation on client  (#5402)

* chore: add Korean translation for client

* fix: change unlisted and embed Korean words

8 years agoFix #5082 - disable retweet link for followers only toot (#5397)
KY [Mon, 16 Oct 2017 12:10:12 +0000 (20:10 +0800)]
Fix #5082 - disable retweet link for followers only toot (#5397)

* Fix #5082 - disable retweet link for followers only toot

* Hide reblog count when it is a direct message

8 years agoi18n: Update Polish translation (#5416)
Marcin Mikołajczak [Mon, 16 Oct 2017 12:09:51 +0000 (14:09 +0200)]
i18n: Update Polish translation (#5416)

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
8 years agoi18n ultim hour «More» dropdown title + reduce motion (#5415)
JeanGauthier [Mon, 16 Oct 2017 12:09:26 +0000 (14:09 +0200)]
i18n ultim hour «More» dropdown title + reduce motion (#5415)

* Correction fem. form

* More dropdown title

* More dropdown title

* More dropdown title

* Add option to reduce motion (#5393)

8 years agoEnable ESLint rules import/* (#5414)
Yamagishi Kazutoshi [Mon, 16 Oct 2017 09:12:09 +0000 (18:12 +0900)]
Enable ESLint rules import/* (#5414)

* Enable ESLint rules import/*

* fix

8 years agoAdd option to reduce motion (#5393)
Nolan Lawson [Mon, 16 Oct 2017 07:36:15 +0000 (00:36 -0700)]
Add option to reduce motion (#5393)

* Add option to reduce motion

* Use HOC to wrap all Motion calls

* fix case-sensitive issue

* Avoid updating too frequently

* Get rid of unnecessary change to _simple_status.html.haml

8 years agoFix offline-plugin warning in dev mode (#5411)
Nolan Lawson [Mon, 16 Oct 2017 07:33:50 +0000 (00:33 -0700)]
Fix offline-plugin warning in dev mode (#5411)

8 years agoReplace JavaScript Testing Framework from Mocha to Jest (#5412)
Yamagishi Kazutoshi [Mon, 16 Oct 2017 07:33:08 +0000 (16:33 +0900)]
Replace JavaScript Testing Framework from Mocha to Jest (#5412)

8 years agoi18n "More" dropdown title (#5410)
Nolan Lawson [Mon, 16 Oct 2017 07:31:47 +0000 (00:31 -0700)]
i18n "More" dropdown title (#5410)

8 years agoRefactor and simplify icon_button.js (#5413)
Nolan Lawson [Mon, 16 Oct 2017 07:30:09 +0000 (00:30 -0700)]
Refactor and simplify icon_button.js (#5413)

8 years agoMerge remote-tracking branch 'origin/master' into gs-master
David Yip [Mon, 16 Oct 2017 06:29:02 +0000 (01:29 -0500)]
Merge remote-tracking branch 'origin/master' into gs-master

8 years agoMerge pull request #180 from STJrInuyasha/glitch-soc/avatar-unification
David Yip [Mon, 16 Oct 2017 05:49:05 +0000 (00:49 -0500)]
Merge pull request #180 from STJrInuyasha/glitch-soc/avatar-unification

Avatar unification, mk.II

8 years ago1.6 changed files for unified avatar styling -- updated to restore unity
Matthew Walsh [Sun, 18 Jun 2017 22:09:03 +0000 (15:09 -0700)]
1.6 changed files for unified avatar styling -- updated to restore unity

8 years agoMerge pull request #173 from glitch-soc/zerowidthmoji
David Yip [Mon, 16 Oct 2017 01:04:19 +0000 (20:04 -0500)]
Merge pull request #173 from glitch-soc/zerowidthmoji

use zerowidth spaces with emojis

8 years agoClear timer when unmounting RelativeTimestamp components (#5408)
Eugen Rochko [Mon, 16 Oct 2017 01:03:36 +0000 (03:03 +0200)]
Clear timer when unmounting RelativeTimestamp components (#5408)

Possibly the cause of #5379, #5377

8 years agoAdd up-to-date korean translation on serverside (#5400)
voidSatisfaction [Sun, 15 Oct 2017 21:08:30 +0000 (06:08 +0900)]
Add up-to-date korean translation on serverside (#5400)

* chore: add korean translation on ko.yml

* feat: add simple form korean translation up-to-date

8 years agol10n Occitan: finishing touches (#5404)
JeanGauthier [Sun, 15 Oct 2017 21:07:32 +0000 (23:07 +0200)]
l10n Occitan: finishing touches (#5404)

* Update oc.json

* Update oc.yml

8 years agoUpdate French translation (#5401)
Yannick A [Sun, 15 Oct 2017 12:21:05 +0000 (14:21 +0200)]
Update French translation (#5401)

8 years agoAdjust public hashtag pages (#5357)
Lynx Kotoura [Sat, 14 Oct 2017 12:48:12 +0000 (21:48 +0900)]
Adjust public hashtag pages (#5357)

This page took 0.091343 seconds and 3 git commands to generate.