From 391b3e3586c65b4dc8ce515721e0fff877e854fb Mon Sep 17 00:00:00 2001 From: lain Date: Wed, 21 Feb 2018 08:16:04 +0100 Subject: [PATCH] TwitterAPI: Fix some bugz. --- lib/pleroma/web/twitter_api/twitter_api.ex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/pleroma/web/twitter_api/twitter_api.ex b/lib/pleroma/web/twitter_api/twitter_api.ex index a8bdbe716..80c4ec192 100644 --- a/lib/pleroma/web/twitter_api/twitter_api.ex +++ b/lib/pleroma/web/twitter_api/twitter_api.ex @@ -16,7 +16,7 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do opts = opts |> Map.put("blocking_user", user) |> Map.put("user", user) - |> Map.put("type", ["Create", "Announce", "Follow"]) + |> Map.put("type", ["Create", "Announce", "Follow", "Like"]) ActivityPub.fetch_activities([user.ap_id | user.following], opts) |> activities_to_statuses(%{for: user}) @@ -42,8 +42,9 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do end def fetch_user_statuses(user, opts \\ %{}) do - ActivityPub.fetch_activities([], opts) + opts = opts |> Map.put("type", ["Create", "Announce", "Follow"]) + ActivityPub.fetch_activities([], opts) |> activities_to_statuses(%{for: user}) end -- 2.45.2