about summary refs log tree commit diff
path: root/app/lib/feed_manager.rb
AgeCommit message (Collapse)Author
2017-07-14Fix subsequent replies to unresolved status not being filtered from home (#4190)Eugen Rochko
Resolves #4177 - smaller changeset
2017-06-29Reduce number of commands in FeedManager#trim (#3989)Akihiko Odaki (@fn_aki@pawoo.net)
2017-06-08Improve RuboCop rules (compatibility to Code Climate) (#3636)Yamagishi Kazutoshi
https://github.com/codeclimate/codeclimate-rubocop/blob/08f8de84ebfb39caa96391e23816877278f6441c/Gemfile.lock#L38 Code Climate is using RuboCop v0.46.0. Change several rules to maintain compatibility.
2017-06-03Execute PushUpdateWorker only for accounts who uses StreamingAPI just now. ↵Clworld
(#3278) * Add redis key "subscribed:timeline:#{account.id}" to indicate active streaming API listeners exists. * Add endpoint for notification only stream. * Run PushUpdateWorker only for users uses Streaming API now. * Move close hander streamTo(Http/Ws) -> stream(Http/Ws)End (Deal with #3370) * Add stream type for stream start log message.
2017-05-19Account domain blocks (#2381)Eugen Rochko
* Add <ostatus:conversation /> tag to Atom input/output Only uses ref attribute (not href) because href would be the alternate link that's always included also. Creates new conversation for every non-reply status. Carries over conversation for every reply. Keeps remote URIs verbatim, generates local URIs on the fly like the rest of them. * Conversation muting - prevents notifications that reference a conversation (including replies, favourites, reblogs) from being created. API endpoints /api/v1/statuses/:id/mute and /api/v1/statuses/:id/unmute Currently no way to tell when a status/conversation is muted, so the web UI only has a "disable notifications" button, doesn't work as a toggle * Display "Dismiss notifications" on all statuses in notifications column, not just own * Add "muted" as a boolean attribute on statuses JSON For now always false on contained reblogs, since it's only relevant for statuses returned from the notifications endpoint, which are not nested Remove "Disable notifications" from detailed status view, since it's only relevant in the notifications column * Up max class length * Remove pending test for conversation mute * Add tests, clean up * Rename to "mute conversation" and "unmute conversation" * Raise validation error when trying to mute/unmute status without conversation * Adding account domain blocks that filter notifications and public timelines * Add tests for domain blocks in notifications, public timelines Filter reblogs of blocked domains from home * Add API for listing and creating account domain blocks * API for creating/deleting domain blocks, tests for Status#ancestors and Status#descendants, filter domain blocks from them * Filter domains in streaming API * Update account_domain_block_spec.rb
2017-05-06Optimize MuteService and AfterBlockService (#2836)alpaca-tc
2017-04-11Remove order prior to .find_in_batches (#1470)Matt Jankowski
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.
2017-04-05Replace calls to FeedManager#inline_render and #broadcastEugen Rochko
2017-04-04Moved to the workerKurtis Rainbolt-Greene
2017-04-04This method isn't used anymoreKurtis Rainbolt-Greene
2017-04-04By pushing this into a worker we can reduce the amount of time the feed ↵Kurtis Rainbolt-Greene
manager using workers eat up a connection
2017-04-05Merge pull request #858 from krainboltgreene/patch-6Eugen
Use active record shorthand
2017-04-04Spawn FeedInsertWorker to deliver status into personal feedEugen Rochko
2017-04-04Use active record shorthandKurtis Rainbolt-Greene
2017-04-04Reduce number of items in feeds, optimize regeneration worker slightly,Eugen Rochko
make regeneration worker unique, (only schedule/execute once at a time)
2017-04-04Optimize FeedManager#unmerge, and slightly optimize FeedManager#mergeEugen Rochko
2017-04-04Optimize filter methods in FeedManager a bit, use redis pipelining on ↵Eugen Rochko
merge/unmerge feed methods, do not re-create a dynamic class on each feed push call, make sure redis-rb uses hiredis
2017-04-02Fix issue with feed merge-in code as wellEugen Rochko
2017-03-15Add "direct" visibility level in the backend. Web UI is not yetEugen Rochko
adjusted to allow choosing it, yet
2017-03-02Fix #231 - MutingEugen Rochko
2017-03-01Mute button progress so far. WIP, doesn't entirely work correctly.Kit Redgrave
2017-03-01If a status is within 40 statuses from the top of a home feed, do notEugen Rochko
reinsert it when someone boosts it
2017-02-11Mentions in private statuses allow mentioned people to see themEugen Rochko
2017-02-09Fix #614 - extra reply-boolean on statuses to account for cases when replied-toEugen Rochko
status is not in the system at time of distribution; fix #607 - reset privacy settings to defaults when cancelling replies
2017-02-05Add tracking of delay to streaming APIEugen Rochko
2017-02-02Cleaning up format of broadcast real-time messages, removingEugen Rochko
redis-backed "mentions" timeline as redundant (given notifications)
2017-01-23Move merging/unmerging of timelines into background. Move blocking intoEugen Rochko
background as well since it's a computationally expensive
2017-01-23Add /api/v1/notifications/clear, non-existing link cards for statuses willEugen Rochko
now return empty hash instead of throwing a 404 error. When following, merge into timeline will filter statuses
2016-12-31Set in_reply_to_account on statuses to non-self value when possible, thusEugen Rochko
resolving the confusion from self-chain replies ultimately linking to a non-self status. Adjust filters
2016-12-22Private posts mentioning non-followers should not notify them, neither ↵Eugen Rochko
locally nor via Salmon
2016-12-22Follow call on locked account creates follow request insteadEugen Rochko
Reflect "requested" relationship in API and UI Reflect inability of private posts to be reblogged in the UI Disable Webfinger for locked accounts
2016-12-04Automatically block outgoing notifications from silenced accounts to usersEugen Rochko
who don't follow them
2016-11-25Fix #65 - Options to block notifications from people you don't follow/who ↵Eugen Rochko
don't follow you
2016-11-25Filter statuses that mention blocked usersEugen Rochko
2016-11-20Adding unified streamable notificationsEugen Rochko
2016-11-15Fix rubocop issues, introduce usage of frozen literal to improve performanceEugen Rochko
2016-11-13Fix #63 - Filter mentions that reply to blocked usersEugen Rochko
2016-11-10Improve filtering of public/hashtag timelines, both in backlog and real-timeEugen Rochko
2016-11-08Improve feed regenerationEugen Rochko
2016-11-07Improved configuration from ENV, cleaned up timeline filter methodsEugen Rochko
to be more readable, add extra logging to process feed service
2016-11-05Adding hashtagsEugen Rochko
2016-11-02Fix subtle bugs, new icon buttonEugen Rochko
2016-10-07Adding public timelineEugen Rochko
2016-10-03Adding a block model and filter mentions from blocked users (fix #60)Eugen Rochko
2016-10-02Preparing feeds for better filteringEugen Rochko
2016-09-29Fix #25 - Only latest reblog of status kept on feed as zset value is set to ↵Eugen Rochko
"true" status ID
2016-09-27Fix #52 - Add API versioning (v1)Eugen Rochko
2016-09-27Fix subtle home feed filtering bugEugen
2016-09-12Fixing image upload limits, allowing webm, merge/unmerge events triggerEugen Rochko
timeline reload in UI, other small fixes
2016-09-10Merge and unmerge timelines on follow/unfollow, solves #21, #22Eugen Rochko