+ bookmarked = Activity.get_bookmark(activity, opts[:for]) != nil
+
+ thread_muted? =
+ case activity.thread_muted? do
+ thread_muted? when is_boolean(thread_muted?) -> thread_muted?
+ nil -> CommonAPI.thread_muted?(user, activity)
+ end
+
+ attachment_data = object.data["attachment"] || []