David Yip
dd29a41b61
Also run the keyword matcher on a status' tags. #208 .
7 years ago
beatrix
ed1cf698a2
Merge pull request #212 from aschmitz/feat/mute-reblogs
...
Allow hiding reblogs on a per-follow basis
7 years ago
David Yip
b86f2e3662
Merge pull request #214 from glitch-soc/keyword-mute
...
Maintain case-insensitivity when merging multiple matchers (#213 )
7 years ago
David Yip
13ec4a9a20
Maintain case-insensitivity when merging multiple matchers ( #213 )
...
When given two regexps, Regexp.union preserves the options set (or not
set) on each regex; this meant that none of the multiline (m),
case-insensitivity (i), or extended syntax (x) options were set. Our
regexps are written expecting the m, i, and x options were set on all of
them, so we need to make sure that we preserve that behavior.
7 years ago
aschmitz
3fe59e7d97
Actually filter blocked reblogs from feed
...
And even a relevant test. Whoops.
7 years ago
aschmitz
869cfdfda6
Don't update follower counts on reblog toggle
7 years ago
aschmitz
76008c3e8c
Updates per code review
...
Thanks, @valerauko!
7 years ago
aschmitz
2f1fdd37d3
Per-user reblog hiding implementation/fixes/tests
...
Note that this will only hide/show *future* reblogs by a user, and does
nothing to remove/add reblogs that are already in the timeline. I don't
think that's a particularly confusing behavior, and it's a lot easier
to implement (similar to mutes, I believe).
7 years ago
aschmitz
2aedd8eaad
"Show reblogs" per-follower UI/database changes
...
TODO:
* Tests (particularly for FollowRequests).
* Anything to respect the setting when putting reblogs in timelines.
7 years ago
David Yip
f84cb3c407
Merge pull request #209 from glitch-soc/update-mastodongo
...
Mastodon GO! -> v0.1.1
7 years ago
kibigo!
f9e8e1357e
Mastodon GO! -> v0.1.1
7 years ago
David Yip
c08135c888
Merge pull request #206 from glitch-soc/autocollapse-boost
...
Autocollapse boosts option
7 years ago
kibigo!
b0f88fbdc1
Autocollapse boosts option
7 years ago
beatrix
0f6d6186b6
Merge pull request #204 from glitch-soc/with-mastodon-go
...
Introducing: Mastodon GO!
7 years ago
kibigo!
23a15bd315
Introducing: Mastodon GO!
7 years ago
beatrix
0daa95befb
add memorial to production.rb
...
in memory of Natalie Nguyen
let her name ring through the ether
7 years ago
David Yip
2aec3c073b
Merge branch 'master' into gs-master
7 years ago
nullkal
0a9cc96cdc
Feature: Unlisted custom emojis ( #5485 )
7 years ago
puckipedia
2c06b21883
Allow ActivityPub Note's tag and attachment to be single objects ( #5534 )
7 years ago
unarist
75776cf237
Optimize FixReblogsInFeeds migration ( #5538 )
...
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.
7 years ago
Jenkins
c388f66ecc
Merge remote-tracking branch 'tootsuite/master' into glitchsoc/master
7 years ago
erin
fe11a72c0b
Fix copying emojos: redirect to the page you were on ( #5509 )
7 years ago
David Yip
d3db08b69f
Merge remote-tracking branch 'origin/master' into gs-master
7 years ago
りんすき
e6f7ccb786
Fix column design broken with very long title ( #5493 )
...
* Fix #5314
* fix not beautiful code
* fix broken design with mobile view
* remove no longer needed code
7 years ago
unarist
4472c5723a
Fix Cocaine::ExitStatusError when upload small non-animated GIF ( #5489 )
...
Looks like copied tempfile need to be flushed before further processing. This issue won't happen if the uploaded file has enough file size.
7 years ago
Nolan Lawson
afe5176ee8
Remove translateZ(0) on modal overlay ( #5478 )
7 years ago
beatrix
ce738197b9
Merge pull request #179 from glitch-soc/keyword-mute
...
Keyword muting
7 years ago
beatrix
a5b1005315
Merge pull request #198 from glitch-soc/gs-direct-timeline
...
Direct messages timeline from tootsuite/mastodon#4514
7 years ago
David Yip
eef50289c6
Merge remote-tracking branch 'STJrInuyasha/feature/direct-timeline' into gs-direct-timeline
7 years ago
Jenkins
cfc46d7334
Merge remote-tracking branch 'tootsuite/master' into glitchsoc/master
7 years ago
Ratmir Karabut
51d4add08d
Update Russian translation ( #5517 )
...
* 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
7 years ago
Anna e só
93255b003f
l10n: PT-BR translation updated ( #5530 )
7 years ago
Olivier Nicole
fe8646f078
Complete Esperanto translation ( #5520 )
7 years ago
David Yip
b8c462c42b
Remove nil check in Glitch::KeywordMute#=~.
...
@regex can no longer be nil, so we don't need to check it.
7 years ago
David Yip
53c2ea1a86
Assume Glitch::KeywordMute#destroy! works and error out if it doesn't.
...
There's nothing useful we can display if the destroy action messes up,
so might as well assert it does and complain loudly if it doesn't.
7 years ago
David Yip
2da4eca986
Use edit template for displaying errors in update.
7 years ago
David Yip
22f9b4f2c0
Also filter notifications containing muted keywords.
7 years ago
David Yip
7caca589c1
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.
7 years ago
David Yip
1d726a72c6
Fix example description.
...
This example actually checks matches at the end of a string.
7 years ago
David Yip
05fecda52d
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.
7 years ago
Ondřej Hruška
77cad0daf0
option to add title to <Button>, use for toot buttons ( #197 )
7 years ago
David Yip
86b0a24362
Merge pull request #196 from glitch-soc/fix-imports
...
Added app/javascript for imports
7 years ago
kibigo!
e8dc70ac81
Added app/javascript for imports
7 years ago
David Yip
763fd4b275
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.
7 years ago
David Yip
2b753ac54f
Merge remote-tracking branch 'origin/master' into gs-master
7 years ago
Matthew Walsh
897931099c
Changes to match other timelines in 2.0
7 years ago
Matthew Walsh
737ab88c86
Added a timeline for Direct statuses
...
* Lists all Direct statuses you've sent and received
* Displayed in Getting Started
* Streaming server support for direct TL
7 years ago
David Yip
e8314ee2a6
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.
7 years ago
David Yip
4ab1534f6c
Address unused translation errors.
7 years ago
David Yip
156ebf53f6
Use current_account from ApplicationController.
...
This avoids copy-pasting definitions of set_account.
7 years ago