"repeat_num" => announcement_count,
"favorited" => to_boolean(favorited),
"repeated" => to_boolean(repeated),
- "external_url" => activity.data["id"]
+ "external_url" => activity.data["id"],
+ "tags" => activity.data["object"]["tag"] || []
}
end
"repeat_num" => 3,
"favorited" => false,
"repeated" => false,
- "external_url" => activity.data["id"]
+ "external_url" => activity.data["id"],
+ "tags" => ["content", "mentioning", "nsfw"]
}
assert ActivityRepresenter.to_map(activity, %{user: user, for: follower, mentioned: [mentioned_user]}) == expected_status