FeedManager Function Example #8

Open
opened 2024-02-06 17:07:14 +00:00 by emacsen · 3 comments
emacsen commented 2024-02-06 17:07:14 +00:00 (Migrated from gitlab.com)

Can you show me an example of what a FeedManager function should expect as input?

We'll need this for AC or WW integration

Can you show me an example of what a FeedManager function should expect as input? We'll need this for AC or WW integration
emacsen commented 2024-02-06 17:07:15 +00:00 (Migrated from gitlab.com)

assigned to @CSDUMMI

assigned to @CSDUMMI
CSDUMMI commented 2024-02-08 21:12:56 +00:00 (Migrated from gitlab.com)

FeedManager.filter? receives three arguments:

  • timeline: a symbol that can be either :home, :list, :mentions or :tags
  • status: the ActiveRecord of the status
  • receiver: an account record that would receive this status

FeedManager.filter? returns a boolean. If it is true, the status is not added to the timeline. Otherwise it is.

`FeedManager.filter?` receives three arguments: - `timeline`: a symbol that can be either `:home`, `:list`, `:mentions` or `:tags` - `status`: the ActiveRecord of the status - `receiver`: an account record that would receive this status `FeedManager.filter?` returns a boolean. If it is true, the status **is not added to the timeline**. Otherwise it is.
CSDUMMI commented 2024-02-13 17:43:23 +00:00 (Migrated from gitlab.com)

mentioned in issue #9

mentioned in issue #9
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
babka/mastodon-babka#8
No description provided.