core/tests/fixtures/blueprint/community_post.json

784 lines
23 KiB
JSON

{
"post_stream": {
"posts": [
{
"id": 1144853,
"name": "Paulus Schoutsen",
"username": "balloob",
"avatar_template": "/user_avatar/community.home-assistant.io/balloob/{size}/21956_2.png",
"created_at": "2020-10-16T12:20:12.688Z",
"cooked": "\u003cp\u003ehere a test topic.\u003cbr\u003e\nhere a test topic.\u003cbr\u003e\nhere a test topic.\u003cbr\u003e\nhere a test topic.\u003c/p\u003e\n\u003ch1\u003eBlock without syntax\u003c/h1\u003e\n\u003cpre\u003e\u003ccode class=\"lang-auto\"\u003eblueprint:\n domain: automation\n name: Example Blueprint from post\n input:\n trigger_event:\n service_to_call:\ntrigger:\n platform: event\n event_type: !placeholder trigger_event\naction:\n service: !placeholder service_to_call\n\u003c/code\u003e\u003c/pre\u003e",
"post_number": 1,
"post_type": 1,
"updated_at": "2020-10-20T08:24:14.189Z",
"reply_count": 0,
"reply_to_post_number": null,
"quote_count": 0,
"incoming_link_count": 0,
"reads": 2,
"readers_count": 1,
"score": 0.4,
"yours": true,
"topic_id": 236133,
"topic_slug": "test-topic",
"display_username": "Paulus Schoutsen",
"primary_group_name": null,
"primary_group_flair_url": null,
"primary_group_flair_bg_color": null,
"primary_group_flair_color": null,
"version": 2,
"can_edit": true,
"can_delete": false,
"can_recover": false,
"can_wiki": true,
"read": true,
"user_title": "Founder of Home Assistant",
"title_is_group": false,
"actions_summary": [
{
"id": 3,
"can_act": true
},
{
"id": 4,
"can_act": true
},
{
"id": 8,
"can_act": true
},
{
"id": 7,
"can_act": true
}
],
"moderator": true,
"admin": true,
"staff": true,
"user_id": 3,
"hidden": false,
"trust_level": 2,
"deleted_at": null,
"user_deleted": false,
"edit_reason": null,
"can_view_edit_history": true,
"wiki": false,
"reviewable_id": 0,
"reviewable_score_count": 0,
"reviewable_score_pending_count": 0,
"user_created_at": "2016-03-30T07:50:25.541Z",
"user_date_of_birth": null,
"user_signature": null,
"can_accept_answer": false,
"can_unaccept_answer": false,
"accepted_answer": false
},
{
"id": 1144854,
"name": "Paulus Schoutsen",
"username": "balloob",
"avatar_template": "/user_avatar/community.home-assistant.io/balloob/{size}/21956_2.png",
"created_at": "2020-10-16T12:20:17.535Z",
"cooked": "",
"post_number": 2,
"post_type": 3,
"updated_at": "2020-10-16T12:20:17.535Z",
"reply_count": 0,
"reply_to_post_number": null,
"quote_count": 0,
"incoming_link_count": 1,
"reads": 2,
"readers_count": 1,
"score": 5.4,
"yours": true,
"topic_id": 236133,
"topic_slug": "test-topic",
"display_username": "Paulus Schoutsen",
"primary_group_name": null,
"primary_group_flair_url": null,
"primary_group_flair_bg_color": null,
"primary_group_flair_color": null,
"version": 1,
"can_edit": true,
"can_delete": true,
"can_recover": false,
"can_wiki": true,
"read": true,
"user_title": "Founder of Home Assistant",
"title_is_group": false,
"actions_summary": [
{
"id": 3,
"can_act": true
},
{
"id": 4,
"can_act": true
},
{
"id": 8,
"can_act": true
},
{
"id": 7,
"can_act": true
}
],
"moderator": true,
"admin": true,
"staff": true,
"user_id": 3,
"hidden": false,
"trust_level": 2,
"deleted_at": null,
"user_deleted": false,
"edit_reason": null,
"can_view_edit_history": true,
"wiki": false,
"action_code": "visible.disabled",
"reviewable_id": 0,
"reviewable_score_count": 0,
"reviewable_score_pending_count": 0,
"user_created_at": "2016-03-30T07:50:25.541Z",
"user_date_of_birth": null,
"user_signature": null,
"can_accept_answer": false,
"can_unaccept_answer": false,
"accepted_answer": false
},
{
"id": 1144872,
"name": "Paulus Schoutsen",
"username": "balloob",
"avatar_template": "/user_avatar/community.home-assistant.io/balloob/{size}/21956_2.png",
"created_at": "2020-10-16T12:27:53.926Z",
"cooked": "\u003cp\u003eTest reply!\u003c/p\u003e",
"post_number": 3,
"post_type": 1,
"updated_at": "2020-10-16T12:27:53.926Z",
"reply_count": 0,
"reply_to_post_number": null,
"quote_count": 0,
"incoming_link_count": 0,
"reads": 2,
"readers_count": 1,
"score": 0.4,
"yours": true,
"topic_id": 236133,
"topic_slug": "test-topic",
"display_username": "Paulus Schoutsen",
"primary_group_name": null,
"primary_group_flair_url": null,
"primary_group_flair_bg_color": null,
"primary_group_flair_color": null,
"version": 1,
"can_edit": true,
"can_delete": true,
"can_recover": false,
"can_wiki": true,
"read": true,
"user_title": "Founder of Home Assistant",
"title_is_group": false,
"actions_summary": [
{
"id": 3,
"can_act": true
},
{
"id": 4,
"can_act": true
},
{
"id": 8,
"can_act": true
},
{
"id": 7,
"can_act": true
}
],
"moderator": true,
"admin": true,
"staff": true,
"user_id": 3,
"hidden": false,
"trust_level": 2,
"deleted_at": null,
"user_deleted": false,
"edit_reason": null,
"can_view_edit_history": true,
"wiki": false,
"reviewable_id": 0,
"reviewable_score_count": 0,
"reviewable_score_pending_count": 0,
"user_created_at": "2016-03-30T07:50:25.541Z",
"user_date_of_birth": null,
"user_signature": null,
"can_accept_answer": false,
"can_unaccept_answer": false,
"accepted_answer": false
}
],
"stream": [
1144853,
1144854,
1144872
]
},
"timeline_lookup": [
[
1,
3
]
],
"suggested_topics": [
{
"id": 17750,
"title": "Tutorial: Creating your first add-on",
"fancy_title": "Tutorial: Creating your first add-on",
"slug": "tutorial-creating-your-first-add-on",
"posts_count": 26,
"reply_count": 14,
"highest_post_number": 27,
"image_url": null,
"created_at": "2017-05-14T07:51:33.946Z",
"last_posted_at": "2020-07-28T11:29:27.892Z",
"bumped": true,
"bumped_at": "2020-07-28T11:29:27.892Z",
"archetype": "regular",
"unseen": false,
"last_read_post_number": 18,
"unread": 7,
"new_posts": 2,
"pinned": false,
"unpinned": null,
"visible": true,
"closed": false,
"archived": false,
"notification_level": 2,
"bookmarked": false,
"liked": false,
"thumbnails": null,
"tags": [],
"like_count": 9,
"views": 4355,
"category_id": 25,
"featured_link": null,
"has_accepted_answer": false,
"posters": [
{
"extras": null,
"description": "Original Poster",
"user": {
"id": 3,
"username": "balloob",
"name": "Paulus Schoutsen",
"avatar_template": "/user_avatar/community.home-assistant.io/balloob/{size}/21956_2.png"
}
},
{
"extras": null,
"description": "Frequent Poster",
"user": {
"id": 9852,
"username": "JSCSJSCS",
"name": "",
"avatar_template": "/user_avatar/community.home-assistant.io/jscsjscs/{size}/38256_2.png"
}
},
{
"extras": null,
"description": "Frequent Poster",
"user": {
"id": 11494,
"username": "so3n",
"name": "",
"avatar_template": "/user_avatar/community.home-assistant.io/so3n/{size}/46007_2.png"
}
},
{
"extras": null,
"description": "Frequent Poster",
"user": {
"id": 9094,
"username": "IoTnerd",
"name": "Balázs Suhajda",
"avatar_template": "/user_avatar/community.home-assistant.io/iotnerd/{size}/33526_2.png"
}
},
{
"extras": "latest",
"description": "Most Recent Poster",
"user": {
"id": 73134,
"username": "diord",
"name": "",
"avatar_template": "/letter_avatar/diord/{size}/5_70a404e2c8e633b245e797a566d32dc7.png"
}
}
]
},
{
"id": 65981,
"title": "Lovelace: Button card",
"fancy_title": "Lovelace: Button card",
"slug": "lovelace-button-card",
"posts_count": 4608,
"reply_count": 3522,
"highest_post_number": 4691,
"image_url": null,
"created_at": "2018-08-28T00:18:19.312Z",
"last_posted_at": "2020-10-20T07:33:29.523Z",
"bumped": true,
"bumped_at": "2020-10-20T07:33:29.523Z",
"archetype": "regular",
"unseen": false,
"last_read_post_number": 1938,
"unread": 369,
"new_posts": 2384,
"pinned": false,
"unpinned": null,
"visible": true,
"closed": false,
"archived": false,
"notification_level": 2,
"bookmarked": false,
"liked": false,
"thumbnails": null,
"tags": [],
"like_count": 1700,
"views": 184752,
"category_id": 34,
"featured_link": null,
"has_accepted_answer": false,
"posters": [
{
"extras": null,
"description": "Original Poster",
"user": {
"id": 25984,
"username": "kuuji",
"name": "Alexandre",
"avatar_template": "/user_avatar/community.home-assistant.io/kuuji/{size}/41093_2.png"
}
},
{
"extras": null,
"description": "Frequent Poster",
"user": {
"id": 2019,
"username": "iantrich",
"name": "Ian",
"avatar_template": "/user_avatar/community.home-assistant.io/iantrich/{size}/154042_2.png"
}
},
{
"extras": null,
"description": "Frequent Poster",
"user": {
"id": 33228,
"username": "jimz011",
"name": "Jim",
"avatar_template": "/user_avatar/community.home-assistant.io/jimz011/{size}/62413_2.png"
}
},
{
"extras": null,
"description": "Frequent Poster",
"user": {
"id": 4931,
"username": "petro",
"name": "Petro",
"avatar_template": "/user_avatar/community.home-assistant.io/petro/{size}/47791_2.png"
}
},
{
"extras": "latest",
"description": "Most Recent Poster",
"user": {
"id": 26227,
"username": "RomRider",
"name": "",
"avatar_template": "/user_avatar/community.home-assistant.io/romrider/{size}/41384_2.png"
}
}
]
},
{
"id": 10564,
"title": "Professional/Commercial Use?",
"fancy_title": "Professional/Commercial Use?",
"slug": "professional-commercial-use",
"posts_count": 54,
"reply_count": 37,
"highest_post_number": 54,
"image_url": null,
"created_at": "2017-01-27T05:01:57.453Z",
"last_posted_at": "2020-10-20T07:03:57.895Z",
"bumped": true,
"bumped_at": "2020-10-20T07:03:57.895Z",
"archetype": "regular",
"unseen": false,
"last_read_post_number": 7,
"unread": 0,
"new_posts": 47,
"pinned": false,
"unpinned": null,
"visible": true,
"closed": false,
"archived": false,
"notification_level": 2,
"bookmarked": false,
"liked": false,
"thumbnails": null,
"tags": [],
"like_count": 21,
"views": 10695,
"category_id": 17,
"featured_link": null,
"has_accepted_answer": false,
"posters": [
{
"extras": null,
"description": "Original Poster",
"user": {
"id": 4758,
"username": "oobie11",
"name": "Bryan",
"avatar_template": "/user_avatar/community.home-assistant.io/oobie11/{size}/37858_2.png"
}
},
{
"extras": null,
"description": "Frequent Poster",
"user": {
"id": 18386,
"username": "pitp2",
"name": "",
"avatar_template": "/letter_avatar/pitp2/{size}/5_70a404e2c8e633b245e797a566d32dc7.png"
}
},
{
"extras": null,
"description": "Frequent Poster",
"user": {
"id": 23116,
"username": "jortegamx",
"name": "Jake",
"avatar_template": "/user_avatar/community.home-assistant.io/jortegamx/{size}/45515_2.png"
}
},
{
"extras": null,
"description": "Frequent Poster",
"user": {
"id": 39038,
"username": "orif73",
"name": "orif73",
"avatar_template": "/letter_avatar/orif73/{size}/5_70a404e2c8e633b245e797a566d32dc7.png"
}
},
{
"extras": "latest",
"description": "Most Recent Poster",
"user": {
"id": 41040,
"username": "devastator",
"name": "",
"avatar_template": "/letter_avatar/devastator/{size}/5_70a404e2c8e633b245e797a566d32dc7.png"
}
}
]
},
{
"id": 219480,
"title": "What the heck is with the 'latest state change' not being kept after restart?",
"fancy_title": "What the heck is with the \u0026lsquo;latest state change\u0026rsquo; not being kept after restart?",
"slug": "what-the-heck-is-with-the-latest-state-change-not-being-kept-after-restart",
"posts_count": 37,
"reply_count": 13,
"highest_post_number": 38,
"image_url": "https://community-assets.home-assistant.io/original/3X/3/4/349d096b209d40d5f424b64e970bcf360332cc7f.png",
"created_at": "2020-08-18T13:10:09.367Z",
"last_posted_at": "2020-10-20T00:32:07.312Z",
"bumped": true,
"bumped_at": "2020-10-20T00:32:07.312Z",
"archetype": "regular",
"unseen": false,
"last_read_post_number": 8,
"unread": 0,
"new_posts": 30,
"pinned": false,
"unpinned": null,
"visible": true,
"closed": false,
"archived": false,
"notification_level": 2,
"bookmarked": false,
"liked": false,
"thumbnails": [
{
"max_width": null,
"max_height": null,
"width": 469,
"height": 59,
"url": "https://community-assets.home-assistant.io/original/3X/3/4/349d096b209d40d5f424b64e970bcf360332cc7f.png"
}
],
"tags": [],
"like_count": 26,
"views": 1722,
"category_id": 52,
"featured_link": null,
"has_accepted_answer": false,
"posters": [
{
"extras": null,
"description": "Original Poster",
"user": {
"id": 3124,
"username": "andriej",
"name": "",
"avatar_template": "/user_avatar/community.home-assistant.io/andriej/{size}/24457_2.png"
}
},
{
"extras": null,
"description": "Frequent Poster",
"user": {
"id": 15052,
"username": "Misiu",
"name": "",
"avatar_template": "/user_avatar/community.home-assistant.io/misiu/{size}/20752_2.png"
}
},
{
"extras": null,
"description": "Frequent Poster",
"user": {
"id": 4629,
"username": "lolouk44",
"name": "lolouk44",
"avatar_template": "/user_avatar/community.home-assistant.io/lolouk44/{size}/119845_2.png"
}
},
{
"extras": null,
"description": "Frequent Poster",
"user": {
"id": 51736,
"username": "hmoffatt",
"name": "Hamish Moffatt",
"avatar_template": "/user_avatar/community.home-assistant.io/hmoffatt/{size}/88700_2.png"
}
},
{
"extras": "latest",
"description": "Most Recent Poster",
"user": {
"id": 78711,
"username": "Astrosteve",
"name": "Steve",
"avatar_template": "/letter_avatar/astrosteve/{size}/5_70a404e2c8e633b245e797a566d32dc7.png"
}
}
]
},
{
"id": 162594,
"title": "A different take on designing a Lovelace UI",
"fancy_title": "A different take on designing a Lovelace UI",
"slug": "a-different-take-on-designing-a-lovelace-ui",
"posts_count": 641,
"reply_count": 425,
"highest_post_number": 654,
"image_url": null,
"created_at": "2020-01-11T23:09:25.207Z",
"last_posted_at": "2020-10-19T23:32:15.555Z",
"bumped": true,
"bumped_at": "2020-10-19T23:32:15.555Z",
"archetype": "regular",
"unseen": false,
"last_read_post_number": 7,
"unread": 32,
"new_posts": 615,
"pinned": false,
"unpinned": null,
"visible": true,
"closed": false,
"archived": false,
"notification_level": 2,
"bookmarked": false,
"liked": false,
"thumbnails": null,
"tags": [],
"like_count": 453,
"views": 68547,
"category_id": 9,
"featured_link": null,
"has_accepted_answer": false,
"posters": [
{
"extras": null,
"description": "Original Poster",
"user": {
"id": 11256,
"username": "Mattias_Persson",
"name": "Mattias Persson",
"avatar_template": "/user_avatar/community.home-assistant.io/mattias_persson/{size}/14773_2.png"
}
},
{
"extras": null,
"description": "Frequent Poster",
"user": {
"id": 27634,
"username": "Jason_hill",
"name": "Jason Hill",
"avatar_template": "/user_avatar/community.home-assistant.io/jason_hill/{size}/93218_2.png"
}
},
{
"extras": null,
"description": "Frequent Poster",
"user": {
"id": 46782,
"username": "Martin_Pejstrup",
"name": "mpejstrup",
"avatar_template": "/user_avatar/community.home-assistant.io/martin_pejstrup/{size}/78412_2.png"
}
},
{
"extras": null,
"description": "Frequent Poster",
"user": {
"id": 46841,
"username": "spudje",
"name": "",
"avatar_template": "/letter_avatar/spudje/{size}/5_70a404e2c8e633b245e797a566d32dc7.png"
}
},
{
"extras": "latest",
"description": "Most Recent Poster",
"user": {
"id": 20924,
"username": "Diego_Santos",
"name": "Diego Santos",
"avatar_template": "/user_avatar/community.home-assistant.io/diego_santos/{size}/29096_2.png"
}
}
]
}
],
"tags": [],
"id": 236133,
"title": "Test Topic",
"fancy_title": "Test Topic",
"posts_count": 3,
"created_at": "2020-10-16T12:20:12.580Z",
"views": 13,
"reply_count": 0,
"like_count": 0,
"last_posted_at": "2020-10-16T12:27:53.926Z",
"visible": false,
"closed": false,
"archived": false,
"has_summary": false,
"archetype": "regular",
"slug": "test-topic",
"category_id": 1,
"word_count": 37,
"deleted_at": null,
"user_id": 3,
"featured_link": null,
"pinned_globally": false,
"pinned_at": null,
"pinned_until": null,
"image_url": null,
"draft": null,
"draft_key": "topic_236133",
"draft_sequence": 8,
"posted": true,
"unpinned": null,
"pinned": false,
"current_post_number": 1,
"highest_post_number": 3,
"last_read_post_number": 3,
"last_read_post_id": 1144872,
"deleted_by": null,
"has_deleted": false,
"actions_summary": [
{
"id": 4,
"count": 0,
"hidden": false,
"can_act": true
},
{
"id": 8,
"count": 0,
"hidden": false,
"can_act": true
},
{
"id": 7,
"count": 0,
"hidden": false,
"can_act": true
}
],
"chunk_size": 20,
"bookmarked": false,
"topic_timer": null,
"private_topic_timer": null,
"message_bus_last_id": 5,
"participant_count": 1,
"show_read_indicator": false,
"thumbnails": null,
"can_vote": false,
"vote_count": null,
"user_voted": false,
"details": {
"notification_level": 3,
"notifications_reason_id": 1,
"can_move_posts": true,
"can_edit": true,
"can_delete": true,
"can_remove_allowed_users": true,
"can_invite_to": true,
"can_invite_via_email": true,
"can_create_post": true,
"can_reply_as_new_topic": true,
"can_flag_topic": true,
"can_convert_topic": true,
"can_review_topic": true,
"can_remove_self_id": 3,
"participants": [
{
"id": 3,
"username": "balloob",
"name": "Paulus Schoutsen",
"avatar_template": "/user_avatar/community.home-assistant.io/balloob/{size}/21956_2.png",
"post_count": 3,
"primary_group_name": null,
"primary_group_flair_url": null,
"primary_group_flair_color": null,
"primary_group_flair_bg_color": null
}
],
"created_by": {
"id": 3,
"username": "balloob",
"name": "Paulus Schoutsen",
"avatar_template": "/user_avatar/community.home-assistant.io/balloob/{size}/21956_2.png"
},
"last_poster": {
"id": 3,
"username": "balloob",
"name": "Paulus Schoutsen",
"avatar_template": "/user_avatar/community.home-assistant.io/balloob/{size}/21956_2.png"
}
}
}