Commit Graph

65 Commits (889709a2a63fda16b1c8919faa9070a316ce9b57)

Author SHA1 Message Date
Eugen Rochko b11fdc3ae3 Migrate from ledermann/rails-settings to rails-settings-cached which allows global settings
with YAML-defined defaults. Add admin page for editing global settings. Add "site_description"
setting that would show as a paragraph on the frontpage
Eugen Rochko 7951e7ffd5 Add ruby version to Gemfile, move devDependencies in package.json to dependencies,
fix bug in process feed service
Eugen Rochko 8f47f6a7ec Adding remote follow button
Eugen Rochko c128fcee16 Update Rails to 5.0.1
Eugen Rochko 76ec907993 Improved admin UI
Eugen Rochko 14bd46946d Per-status control for unlisted mode, also federation for unlisted mode
Fix , fix 
Eugen Rochko 5973ca3d11 Upgrade Paperclip to 5, AWS-SDK to 2, do not generate medium/small versions of avatars
Eugen Rochko cc70f28f19 Adding rack timeout of 30sec, PuSH jobs moved to push queue so they
can be processed separately
Eugen Rochko 8efa081f21 Remove Neo4J
Eugen Rochko 8e34bed7cc Mini Profiler not working well, remove it
Eugen Rochko fc90d38893 Moving some counter queries out of subqueries in the API
Eugen Rochko 4b5b953d42 Upgrade to latest Rails, which apparently improves ActionCable performance
Eugen Rochko 546c4718e7 Localizations for most server-side strings
Eugen Rochko 09218d4c01 Use full-text search for autosuggestions
Eugen Rochko 448ab18a20 Replace setting custom CORS headers with rack-cors, set it on /oauth/token endpoint
Eugen Rochko d0d799f911 Replace react-skylight with own solution that centers images better
Eugen Rochko ea4170785a Downgrade aws gem as this one was incompatible with Paperclip
Eugen Rochko 3ab193bc3f Adding optional S3, fail-mastodon
Eugen Rochko 6471a548fe Add pghero for analyzing postgres performance in production
Eugen Rochko 0160d1d9b5 Enable caching for some rabl views
Eugen Rochko 53fb7b1aa8 Replace in-memory cache store with redis store, should decrease memory
footprint of each running process by 128mb
Eugen Rochko 53deeeca01 Update ostatus2 version
Eugen Rochko e21a3fe0cd Adding sync of follow relationships to Neo4J, accounts/suggestions API
Eugen Rochko 64302b3c99 Improve Friendica support (but still not there yet)
Eugen Rochko 06016453bd Adding user settings (model and mailer), no form yet
Eugen Rochko 5cfc9efad3 Update OStatus2 to handle malformed Salmon without raising unexpected exceptions
Eugen Rochko 4909bbf415 Add logging for outgoing http requests
Eugen Rochko b36197c307 Fix tests, update goldfinger to catch XML errors
Eugen Rochko e63aebff7a Adding landing page
Eugen Rochko 57583f3fb8 Improve partial rendering and Haml performance (Haml->Hamlit)
Eugen Rochko 4bec613897 Fix - Thread resolving for remote statuses
This is a big one, so let me enumerate:

Accounts as well as stream entry pages now contain Link headers that
reference the Atom feed and Webfinger URL for the former and Atom entry
for the latter. So you only need to HEAD those resources to get that
information, no need to download and parse HTML <link>s.

ProcessFeedService will now queue ThreadResolveWorker for each remote
status that it cannot find otherwise. Furthermore, entries are now
processed in reverse order (from bottom to top) in case a newer entry
references a chronologically previous one.

ThreadResolveWorker uses FetchRemoteStatusService to obtain a status
and attach the child status it was queued for to it.

FetchRemoteStatusService looks up the URL, first with a HEAD, tests
if it's an Atom feed, in which case it processes it directly. Next
for Link headers to the Atom feed, in which case that is fetched
and processed. Lastly if it's HTML, it is checked for <link>s to the Atom
feed, and if such is found, that is fetched and processed. The account for
the status is derived from author/name attribute in the XML and the hostname
in the URL (domain). FollowRemoteAccountService and ProcessFeedService
are used.

This means that potentially threads are resolved recursively until a dead-end
is encountered, however it is performed asynchronously over background jobs,
so it should be ok.
Eugen Rochko 608a2bfffc Upgrade to PubSubHubbub 0.4 (removing verify_token)
Eugen Rochko 1cfc9aa20e OStatus2 and Goldfinger gems now have timeouts for requests
Eugen Rochko 1245ee42fb Update OStatus2 library
Eugen Rochko af375b5bac Update sidekiq, remove sinatra dependency
Eugen Rochko 18d21f1a39 Update doorkeeper dependency and replace libav with backported ffmpeg in docker
Eugen Rochko ce29624c6d Fixing image upload limits, allowing webm, merge/unmerge events trigger
timeline reload in UI, other small fixes
Eugen Rochko 85d89b472d Optimized n+1 queries in accounts Atom and HTML views
Added stack trace for SQL queries in development
Removed badly thought out accounts/lookup API
Eugen Rochko 0f4bc56719 Improving production logs, removing n+1 on media attachments in atom,
adding attachments display to static views
Eugen Rochko bc0692d75b Removing mini-profiler that doesn't work, formatting timelines a bit better
Eugen Rochko 49520d6e62 Adding React.js, Redux, revamping dashboard
Eugen Rochko 6deb9f966e Live timelines using ActionCable
Eugen Rochko 10ba09f546 Upgrade to Rails 5.0.0.1
Eugen Rochko 85b00d19b8 Moving Salmon notifications to background processing, fixing mini-profiler
behaviour with Turbolinks enabled, optimizing Rabl for production
Eugen Rochko 42dcb0d4cb Adding Sidekiq for background processing (firstly just of mailers)
Eugen Rochko f14f462eaf Adding Turbolinks, adding status posting form on homepage
Eugen Rochko 19a259915e Security update
Eugen Rochko e2b846f630 Adding letter opener for development and Rack::Attack for future rate limiting implementations
Eugen Rochko c349200761 Removing some unused gems, adding pagination to profiles, fix
Eugen Rochko 3441361568 Adding simple_form, adding profile settings, header image