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.
7 years ago
Eugen Rochko
8a6d8de60a
Fix nil#object_type error
7 years ago
Jantso Porali
786e6f94b9
Update Finnish translations, add sample Minio config ( #954 )
7 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
7 years ago
Eugen Rochko
624a9a7136
Re-add forgotten <author> element on standalone <entry>
7 years ago
Eugen
1c351709bc
Force UTF8 encoding on generated XML ( #1140 )
7 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
7 years ago
Matt Jankowski
97ae53daa8
Reduce size of background-photo.jpeg
Reduced by running through `guetzli` image optimizer.
7 years ago
Eugen Rochko
51d7caaf19
Fix wrong pubsub channel on public timelines
7 years ago
Eugen Rochko
dbd529109e
Fix notifications delivered to wrong pubsub channel, optimized RemoveStatusService,
slightly optimized FanOutOnWriteService again
7 years ago
blackle
540d6efe88
Catch more errors in process_follows so it doesn't fail
7 years ago
Eugen Rochko
5442083b3c
Split SalmonWorker into smaller parts, move profile updating into another job
7 years ago
Eugen Rochko
5b95be1c42
Replace calls to FeedManager#inline_render and #broadcast
7 years ago
Eugen
c9ebd5d19f
Fix wrong variable used in publish channel
7 years ago
Eugen
1b8c244dff
Add proper message to PushUpdateWorker, use redis directly
7 years ago
tom
8989569dd4
Update components.scss
Use nicer scrollbars in MS edge
7 years ago
Eugen Rochko
220bc48e8e
Only render public payload once in FanOutOnWrite
7 years ago
Eugen Rochko
8530f9413b
Replace ActionCable broadcast call with simple redis publish
7 years ago
JantsoP
b8a867adcc
updated translation
Updated some translations after seeing them in service. Should be better now
7 years ago
Brad Urani
6a1da87cd3
Eliminate unnecessary queries and query clauses with none and all
7 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)
7 years ago
Kurtis Rainbolt-Greene
7bed4e51db
Moved to the worker
7 years ago
Kurtis Rainbolt-Greene
9638894233
Moving in the inline render
7 years ago
Kurtis Rainbolt-Greene
220051b8b2
I don't actually think we need that.
7 years ago
Kurtis Rainbolt-Greene
0069c01285
Moving the queue_at into the worker
7 years ago
Kurtis Rainbolt-Greene
dc5704b0b0
This method isn't used anymore
7 years ago
Kurtis Rainbolt-Greene
96ef933820
Replacing the broadcast method with the one defined in the feed manager
7 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
7 years ago
Drew DeVault
c106b6d3e0
Improve readability of text on profiles
7 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.
7 years ago
Eugen Rochko
bda37489ac
Remove PuSH subscriptions when delivery is answered with a 4xx error
7 years ago
Samy KACIMI
79ef756f64
fix rubocop issues
7 years ago
Samy KACIMI
81c76fe375
add more tests to models
7 years ago
axolotl
8736ef50ad
Added Esperanto translation inside the javascripts folder
7 years ago
Eugen Rochko
6fd865c000
Spawn FeedInsertWorker to deliver status into personal feed
7 years ago
Kurtis Rainbolt-Greene
731e650681
Use active record shorthand
7 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
7 years ago
Eugen Rochko
5f54981846
New admin setting: open/close registrations, with custom message, from the admin UI
7 years ago
JantsoP
10a8666e04
updated line 28 about GitHub
7 years ago
Eugen Rochko
82aaedec46
Reduce number of items in feeds, optimize regeneration worker slightly,
make regeneration worker unique, (only schedule/execute once at a time)
7 years ago
Eugen Rochko
b1f3499c38
Optimize FeedManager#unmerge, and slightly optimize FeedManager#merge
7 years ago
Eugen Rochko
b21f7c28f6
Move OStatus processing back into default queue
7 years ago
Eugen Rochko
ce9df2fa82
Optimize filter methods in FeedManager a bit, use redis pipelining on merge/unmerge feed methods,
do not re-create a dynamic class on each feed push call, make sure redis-rb uses hiredis
7 years ago
JantsoP
b8243c1b49
changed line 25 for better translation
7 years ago
Eugen Rochko
eb023beb49
Fix #808 - smaller elephant friend PNG for frontpage
7 years ago
Eugen Rochko
b510a56c0c
Only call regeneration worker after first login after a 14 day break
7 years ago
Eugen Rochko
4c53af64f0
Fix ActionController::Parameters in API issue
7 years ago
Eugen Rochko
f722bd2387
Separate background jobs into different queues. ATTENTION: new queue "pull"
must be added to the Sidekiq invokation in your systemd file
The pull queue will handle link crawling, thread resolving, and OStatus
processing. Such tasks are more likely to hang for a longer time (due to
network requests) so it is more sensible to not make the "in-house" tasks
wait for them.
7 years ago
Eugen Rochko
8232f76c48
Add check for visibility.nil? even though it can't ever be, to check for race conditions
7 years ago
halna_Tanaguru
3f30ae1f97
accessibility fix
eanable focus on ClearColumnButton
7 years ago