projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a32bcab
)
Serve non-public activities in /api/v1/favourites
author
rinpatch
<rinpatch@sdf.org>
Sun, 24 Mar 2019 23:15:45 +0000
(
02:15
+0300)
committer
rinpatch
<rinpatch@sdf.org>
Sun, 24 Mar 2019 23:15:45 +0000
(
02:15
+0300)
Fixes #648
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
index 2eb1da56180ff9f453f0bdb048b664f99aa87a8f..6be0f2bafdcd6b3d563a05e4effa48f6e17bc2b3 100644
(file)
--- a/
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
+++ b/
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
@@
-944,12
+944,14
@@
defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
end
def favourites(%{assigns: %{user: user}} = conn, params) do
-
activitie
s =
+
param
s =
params
|> Map.put("type", "Create")
|> Map.put("favorited_by", user.ap_id)
|> Map.put("blocking_user", user)
- |> ActivityPub.fetch_public_activities()
+
+ activities =
+ ActivityPub.fetch_activities([], params)
|> Enum.reverse()
conn