alias Pleroma.{Activity, User}
alias Calendar.Strftime
alias Pleroma.Web.TwitterAPI.TwitterAPI
- alias Pleroma.Wi
defp user_by_ap_id(user_list, ap_id) do
Enum.find(user_list, fn (%{ap_id: user_id}) -> ap_id == user_id end)
"uri" => "tag:#{activity.data["id"]}:objectType=note",
"created_at" => created_at,
"retweeted_status" => retweeted_status,
- "statusnet_conversation_id" => conversation_id(announced_activity)
+ "statusnet_conversation_id" => conversation_id(announced_activity),
+ "external_url" => activity.data["id"]
}
end
"uri" => "tag:#{activity.data["id"]}:objectType=Favourite",
"created_at" => created_at,
"in_reply_to_status_id" => liked_activity.id,
+ "external_url" => activity.data["id"]
}
end
"is_post_verb" => false,
"created_at" => created_at,
"in_reply_to_status_id" => nil,
+ "external_url" => activity.data["id"]
}
end
"repeat_num" => announcement_count,
"favorited" => to_boolean(favorited),
"repeated" => to_boolean(repeated),
+ "external_url" => activity.data["id"]
}
end