update block api to allow multiple blogs to be blocked at the same time
Currently the format to block a blog is a post command where the url includes the blog url and blog id to be blocked (for example http://example.bdsmlr.com/block/1234) and the blog id is passed as date using an idblock field, and the user's blog id is passed as a blogid field.
This makes sharing a block list, for example of individuals who harass others, or of those who create content for those who don't want to see that content, a bit difficult. It's probably not impossible to write code in a bookmarklet to read the current csrf token and block multiple people, but each block requires it's own API call, or possibly more than one.
I'd like to request that the api be updated to allow people to block multiple blogs with one post command using the user doing the blocking's url with a format like http://myurl.bdsmlr.com/block-multiple where the data passed is a json array of blog names to be blocked.
While ideally bdsmlr would provide the means to do this with it's own user page where blog names could be entered in a comma separated list, i'm also happy to write a bookmarklet to handle it.
I considered just doing so using the current API without making this request, but having people send multiple requests when using a block list could lead to hundreds of separate database transactions that could be combined more efficiently.
Block lists are, in my opinion, of benefit to BDSMLR itself, not just users. because they allow users to curate their interactions on the site, users are more likely to engage with content they enjoy and increase site ad revenue.
Please sign in to leave a comment.
Comments
0 comments