Commit Graph

47 Commits (5357329454afd76c9c3bf5c292d605e3039d3508)

Author SHA1 Message Date
Matt Jankowski b57eed4584 Remove order prior to .find_in_batches ()
The `Status` class has a default order on it, so when this query gets built and
gets all the way to `find_in_batches` there is an order already there.

When `find_in_batches` is run it discards any existing order on the query, and
emits a warning to the logs if there is one there.

This change removes the order prior calling `find_in_batches`, which will stop
the logged warning from occurring as well.
Eugen Rochko 5b95be1c42 Replace calls to FeedManager#inline_render and #broadcast
Kurtis Rainbolt-Greene 7bed4e51db Moved to the worker
Kurtis Rainbolt-Greene dc5704b0b0 This method isn't used anymore
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
Eugen 2edeb3fe1c Merge pull request from krainboltgreene/patch-6
Use active record shorthand
Eugen Rochko 6fd865c000 Spawn FeedInsertWorker to deliver status into personal feed
Kurtis Rainbolt-Greene 731e650681 Use active record shorthand
Eugen Rochko 82aaedec46 Reduce number of items in feeds, optimize regeneration worker slightly,
make regeneration worker unique, (only schedule/execute once at a time)
Eugen Rochko b1f3499c38 Optimize FeedManager#unmerge, and slightly optimize FeedManager#merge
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
Eugen Rochko d6b965cf08 Fix issue with feed merge-in code as well
Eugen Rochko 74ae158c2f Add "direct" visibility level in the backend. Web UI is not yet
adjusted to allow choosing it, yet
Eugen Rochko c64a1c25c4 Fix - Muting
Kit Redgrave 442fdbfc53 Mute button progress so far. WIP, doesn't entirely work correctly.
Eugen Rochko 7f0d1b8cc0 If a status is within 40 statuses from the top of a home feed, do not
reinsert it when someone boosts it
Eugen Rochko dc851c922e Mentions in private statuses allow mentioned people to see them
Eugen Rochko 6331ed16e5 Fix - extra reply-boolean on statuses to account for cases when replied-to
status is not in the system at time of distribution; fix  - reset privacy
settings to defaults when cancelling replies
Eugen Rochko fb6aa7ad5c Add tracking of delay to streaming API
Eugen Rochko d9ca46b464 Cleaning up format of broadcast real-time messages, removing
redis-backed "mentions" timeline as redundant (given notifications)
Eugen Rochko cca82bf0a2 Move merging/unmerging of timelines into background. Move blocking into
background as well since it's a computationally expensive
Eugen Rochko f392030ab8 Add /api/v1/notifications/clear, non-existing link cards for statuses will
now return empty hash instead of throwing a 404 error. When following,
merge into timeline will filter statuses
Eugen Rochko 8d44281677 Set in_reply_to_account on statuses to non-self value when possible, thus
resolving the confusion from self-chain replies ultimately linking to a
non-self status. Adjust filters
Eugen Rochko f729cfc881 Private posts mentioning non-followers should not notify them, neither locally nor via Salmon
Eugen Rochko b891a81008 Follow call on locked account creates follow request instead
Reflect "requested" relationship in API and UI
Reflect inability of private posts to be reblogged in the UI
Disable Webfinger for locked accounts
Eugen Rochko 00e9dac1d3 Automatically block outgoing notifications from silenced accounts to users
who don't follow them
Eugen Rochko 71401659b8 Fix - Options to block notifications from people you don't follow/who don't follow you
Eugen Rochko e3ed212b85 Filter statuses that mention blocked users
Eugen Rochko da2ef4d676 Adding unified streamable notifications
Eugen Rochko fdc17bea58 Fix rubocop issues, introduce usage of frozen literal to improve performance
Eugen Rochko f8f15e5697 Fix - Filter mentions that reply to blocked users
Eugen Rochko 17903c6dae Improve filtering of public/hashtag timelines, both in backlog and real-time
Eugen Rochko bb4d1eb2e8 Improve feed regeneration
Eugen Rochko dbe00a4156 Improved configuration from ENV, cleaned up timeline filter methods
to be more readable, add extra logging to process feed service
Eugen Rochko 48b9619439 Adding hashtags
Eugen Rochko 4b357ecf98 Fix subtle bugs, new icon button
Eugen Rochko 1f650d327d Adding public timeline
Eugen Rochko 9d59d7b463 Adding a block model and filter mentions from blocked users (fix )
Eugen Rochko be86d4e0a3 Preparing feeds for better filtering
Eugen Rochko a4f7eca5fa Fix - Only latest reblog of status kept on feed as zset value is set to "true" status ID
Eugen Rochko 4f9b7432dd Fix - Add API versioning (v1)
Eugen 3f75f52285 Fix subtle home feed filtering bug
Eugen Rochko ce29624c6d Fixing image upload limits, allowing webm, merge/unmerge events trigger
timeline reload in UI, other small fixes
Eugen Rochko 0077fc26df Merge and unmerge timelines on follow/unfollow, solves ,
Eugen Rochko 3cc47beb6e Refactored generation of unique tags, URIs and object URLs into own classes,
as well as formatting of content
Eugen Rochko e24bfbde1a Fixing FanOutOnWriteService, fixing Sidekiq not having enough DB connections
in the pool, adding a throttle of 60rpm per IP, adding mini profiler, adding
admin status to users
Eugen Rochko a08e724476 Fix subscriptions:clear task, refactor feeds, refactor streamable activites
and atom feed generation to some extent, as well as the way mentions are
stored