Extend Mastodon API with public endpoint for getting Favorites timeline of any user (#789)
This commit is contained in:
parent
10c40e13d2
commit
9dd36e5bcb
7 changed files with 294 additions and 3 deletions
|
|
@ -632,7 +632,7 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
|
|||
|
||||
defp build_info_cng(user, params) do
|
||||
info_params =
|
||||
["no_rich_text", "locked", "hide_followers", "hide_follows", "show_role"]
|
||||
["no_rich_text", "locked", "hide_followers", "hide_follows", "hide_favorites", "show_role"]
|
||||
|> Enum.reduce(%{}, fn key, res ->
|
||||
if value = params[key] do
|
||||
Map.put(res, key, value == "true")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue