Add Webhook at FeedManager.filter? for filtering statuses from users' timelines #9

Open
opened 2024-02-13 17:43:22 +00:00 by CSDUMMI · 3 comments
CSDUMMI commented 2024-02-13 17:43:22 +00:00 (Migrated from gitlab.com)

Make a post request to an external services with the status, timeline type and recipient whenever FeedManager.filter? is called (see #8).

The external service should respond with a JSON like this:

{
   "ok": boolean,
   "message": str,
   "request_id": str
}

The ok boolean indicates whether a message should be added to the timeline or not, the message is some debugging info and the request ID is a unique ID assigned to the webhook request by the external service.

Make a post request to an external services with the status, timeline type and recipient whenever `FeedManager.filter?` is called (see #8). The external service should respond with a JSON like this: ```json { "ok": boolean, "message": str, "request_id": str } ``` The `ok` boolean indicates whether a message should be added to the timeline or not, the message is some debugging info and the request ID is a unique ID assigned to the webhook request by the external service.
CSDUMMI commented 2024-02-23 10:11:50 +00:00 (Migrated from gitlab.com)
created branch [`9-add-webhook-at-feedmanager-filter-for-filtering-statuses-from-users-timelines`](/babka_net/mastodon-babka/-/compare/babka...9-add-webhook-at-feedmanager-filter-for-filtering-statuses-from-users-timelines) to address this issue
CSDUMMI commented 2024-02-23 10:11:56 +00:00 (Migrated from gitlab.com)

mentioned in merge request !22

mentioned in merge request !22
CSDUMMI commented 2024-02-23 10:58:58 +00:00 (Migrated from gitlab.com)

Perhaps, to better align our understanding, the field ok should be renamed to "remove" or "notOk" to better describe what it is doing?

Perhaps, to better align our understanding, the field ok should be renamed to "remove" or "notOk" to better describe what it is doing?
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#9
No description provided.