Extend Mastodon API with public endpoint for getting Favorites timeline of any user (#789)

This commit is contained in:
Sergey Suprunenko 2019-04-23 02:47:43 +00:00 committed by kaniini
commit 9dd36e5bcb
7 changed files with 294 additions and 3 deletions

View file

@ -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")