From: lain Date: Wed, 21 Feb 2018 07:16:04 +0000 (+0100) Subject: TwitterAPI: Fix some bugz. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=391b3e3586c65b4dc8ce515721e0fff877e854fb;p=akkoma TwitterAPI: Fix some bugz. --- 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