Joël Quenneville
d4c94fa004
DRY up reblog vs original status check
...
Checking reblog vs original status was happening in multiple places
across the app. For views, this logic was encapsulated in a helper
method named `proper_status` but in the other layers of the app, the
logic was duplicated.
Because the logic is used at all layers of the app, we extracted it into
a `Status#proper` method on the model and changed all uses of the logic
to use this method. There is now a single source of truth for this
condition.
We added test coverage to untested methods that got refactored.
8 years ago
Eugen
4e41cd9ab8
Merge pull request #1146 from tootsuite/fix-object-type-nil-exception
...
Fix nil#object_type error
8 years ago
Eugen
c9b23a93c7
Merge branch 'master' into fix-object-type-nil-exception
8 years ago
Eugen
0adee18d73
Merge branch 'master' into feature-customized-default-locale
8 years ago
Eugen Rochko
8a6d8de60a
Fix nil#object_type error
8 years ago
Jantso Porali
786e6f94b9
Update Finnish translations, add sample Minio config ( #954 )
8 years ago
Eugen Rochko
e3a3422a65
Allow setting of default language through config
...
Setting of locale in controller extracted to Localized concern,
the doorkeeper authorized applications controller moved under
custom namespace with inclusion of Localized, which resolves the
"it sometimes appears in a different random language" bug
8 years ago
Eugen Rochko
624a9a7136
Re-add forgotten <author> element on standalone <entry>
8 years ago
Eugen
1c351709bc
Force UTF8 encoding on generated XML ( #1140 )
8 years ago
Eugen
6d6a429af8
Rewrite Atom generation from stream entries to use Ox instead of Nokogiri ( #1124 )
...
* Rewrite Atom generation from stream entries to use Ox instead of Nokogiri::Builder
StreamEntry is now limited to only statuses, which allows some optimization. Removed
extra queries on AccountsController#show. AtomSerializer instead of AtomBuilderHelper
used in AccountsController#show, StreamEntriesController#show, StreamEntryRenderer
and PubSubHubbub::DistributionWorker
PubSubHubbub::DistributionWorker moves n+1 DomainBlock query to PubSubHubbub::DeliveryWorker
instead.
All Salmon slaps that aren't based on StreamEntry still use AtomBuilderHelper and Nokogiri
* All Salmon slaps now use Ox instead of Nokogiri. No touch from status on account
8 years ago
Matt Jankowski
97ae53daa8
Reduce size of background-photo.jpeg
...
Reduced by running through `guetzli` image optimizer.
8 years ago
Eugen Rochko
51d7caaf19
Fix wrong pubsub channel on public timelines
8 years ago
Eugen
a9c0062e80
Merge pull request #1013 from blackle/master
...
Catch more errors in process_follows so it doesn't fail
8 years ago
Eugen Rochko
dbd529109e
Fix notifications delivered to wrong pubsub channel, optimized RemoveStatusService,
...
slightly optimized FanOutOnWriteService again
8 years ago
blackle
540d6efe88
Catch more errors in process_follows so it doesn't fail
8 years ago
Eugen Rochko
5442083b3c
Split SalmonWorker into smaller parts, move profile updating into another job
8 years ago
Eugen Rochko
5b95be1c42
Replace calls to FeedManager#inline_render and #broadcast
8 years ago
Eugen
c9ebd5d19f
Fix wrong variable used in publish channel
8 years ago
Eugen
1b8c244dff
Add proper message to PushUpdateWorker, use redis directly
8 years ago
Eugen
3d8b80e1cc
Merge branch 'master' into broadcast-to-worker
8 years ago
Eugen Rochko
220bc48e8e
Only render public payload once in FanOutOnWrite
8 years ago
Eugen Rochko
8530f9413b
Replace ActionCable broadcast call with simple redis publish
8 years ago
Eugen
1904a1aa14
Merge pull request #919 from JantsoP/master
...
More updates to Finnish language
8 years ago
Eugen
6b566c6b88
Merge pull request #908 from krainboltgreene/application-worker-for-shared-logic
...
ApplicationWorker for shared worker behavior
8 years ago
JantsoP
20b53e6add
Merge branch 'master' into master
8 years ago
JantsoP
b8a867adcc
updated translation
...
Updated some translations after seeing them in service. Should be better now
8 years ago
Brad Urani
6a1da87cd3
Eliminate unnecessary queries and query clauses with none and all
8 years ago
Kurtis Rainbolt-Greene
22dcadedb4
We're going to want these nice helper methods, lets share them with a parent class that matches Rails 5 practices (application level abstraction)
8 years ago
Kurtis Rainbolt-Greene
7bed4e51db
Moved to the worker
8 years ago
Kurtis Rainbolt-Greene
9638894233
Moving in the inline render
8 years ago
Kurtis Rainbolt-Greene
220051b8b2
I don't actually think we need that.
8 years ago
Kurtis Rainbolt-Greene
0069c01285
Moving the queue_at into the worker
8 years ago
Kurtis Rainbolt-Greene
dc5704b0b0
This method isn't used anymore
8 years ago
Kurtis Rainbolt-Greene
96ef933820
Replacing the broadcast method with the one defined in the feed manager
8 years ago
Kurtis Rainbolt-Greene
1e96ce378e
By pushing this into a worker we can reduce the amount of time the feed manager using workers eat up a connection
8 years ago
Eugen
4c92f15664
Merge branch 'master' into add_more_tests_to_models
8 years ago
Eugen
afdcdce551
Merge pull request #839 from SirCmpwn/profile-readability
...
Improve readability of text on profiles
8 years ago
Drew DeVault
c106b6d3e0
Improve readability of text on profiles
8 years ago
Eugen
e76dd52b08
Merge pull request #818 from JantsoP/master
...
Updated Finnish Translation
8 years ago
Eugen
117b22e905
Merge pull request #852 from peterkeen/email-whitelist-817
...
[#817 ] Add email whitelist
8 years ago
Eugen
909d81923e
Merge pull request #898 from SirCmpwn/remote-follow-improvements
...
Remote follow improvements
8 years ago
Eugen
2edeb3fe1c
Merge pull request #858 from krainboltgreene/patch-6
...
Use active record shorthand
8 years ago
Drew DeVault
f7e35d90db
Remote follow improvements
...
This stores the @username@instance you provide in your session and
reuses it the next time you remote follow someone from this instance.
8 years ago
Eugen Rochko
bda37489ac
Remove PuSH subscriptions when delivery is answered with a 4xx error
8 years ago
Samy KACIMI
79ef756f64
fix rubocop issues
8 years ago
Samy KACIMI
81c76fe375
add more tests to models
8 years ago
Eugen Rochko
6fd865c000
Spawn FeedInsertWorker to deliver status into personal feed
8 years ago
Kurtis Rainbolt-Greene
731e650681
Use active record shorthand
8 years ago
Pete Keen
e9a6da6bc7
[ #817 ] Add email whitelist
...
This adds the ability to filter user signup with a whitelist
instead of or in addition to a blacklist.
Fixes #817
8 years ago
Eugen Rochko
5f54981846
New admin setting: open/close registrations, with custom message, from the admin UI
8 years ago