Closed jterps08 closed 7 years ago
$ http --verify no GET https://api-staging.powerli.ne/api/v2/activities "Token:$TOKEN"
HTTP/1.1 200 OK
Cache-Control: no-cache
Connection: keep-alive
Content-Type: application/json
Date: Wed, 15 Feb 2017 07:29:59 GMT
Server: nginx/1.1.19
Transfer-Encoding: chunked
X-Powered-By: PHP/5.5.12-2+deb.sury.org~precise+1
{
"items": 20,
"page": 1,
"payload": [
{
"description": "Long form url",
"description_html": "Long form url",
"entity": {
"id": 202,
"type": "leader-news"
},
"expire_at": "Wed, 15 Feb 2017 20:04:29 +0000",
"id": 390,
"image_src": "https://img.youtube.com/vi/iOmgD_aCSPM/0.jpg",
"owner": {
"avatar_file_path": "https://api-staging.powerli.ne/bundles/civixfront/img/default_group.png",
"group_type": 0,
"id": 136,
"official_name": "Zxcgroup1",
"type": "group"
},
"picture": null,
"poll": {
"answers_count": null,
"educational_context": [
{
"id": 60,
"imageSrc": null,
"text": "https://www.youtube.com/watch?v=iOmgD_aCSPM",
"type": "video"
}
],
"is_subscribed": true
},
"post": null,
"rate_down": 0,
"rate_up": 1,
"read": true,
"responses_count": 0,
"sent_at": "Tue, 14 Feb 2017 20:04:29 +0000",
"title": "",
"updated_at": "2017-02-15T01:22:35+0000",
"user": {
"avatar_file_name": "https://powerline-staging.imgix.net/avatars/589a438fa4320.jpeg?ixlib=php-1.1.0",
"full_name": "Zxc Zxc",
"id": 59,
"official_title": "Zxc Zxc",
"type": "user"
},
"user_petition": null,
"zone": "non_prioritized"
},
{
"answers": [],
"comments_count": 0,
"description": "https://youtu.be/iOmgD_aCSPM\n\nVs https://www.youtube.com/watch?v=iOmgD_aCSPM",
"description_html": "https://youtu.be/iOmgD_aCSPM\n\nVs https://www.youtube.com/watch?v=iOmgD_aCSPM",
"entity": {
"group_id": 136,
"id": 163,
"type": "post"
},
"expire_at": "Wed, 15 Feb 2017 20:03:16 +0000",
"id": 389,
"image_src": null,
"metadata": {
"description": "Jesse Chen asks a fundamental question about our society - what is a democracy? While he gives us a reality check on the state of democracy in America, he se...",
"image": "https://i.ytimg.com/vi/iOmgD_aCSPM/maxresdefault.jpg",
"title": "Redefining Democracy for Peopleâs Power | Jesse Chen | TEDxLoyolaMarymountU",
"url": "https://youtu.be/iOmgD_aCSPM"
},
"owner": {
"avatar_file_path": "https://powerline-staging.imgix.net/avatars/589a438fa4320.jpeg?ixlib=php-1.1.0",
"first_name": "Zxc",
"id": 59,
"last_name": "Zxc",
"official_title": "",
"type": "user"
},
"picture": null,
"poll": null,
"post": {
"is_subscribed": true
},
"quorum": 0,
"rate_down": null,
"rate_up": null,
"read": false,
"responses_count": 0,
"sent_at": "Tue, 14 Feb 2017 20:03:17 +0000",
"title": "",
"updated_at": "2017-02-14T20:03:58+0000",
"user": {
"avatar_file_name": "https://powerline-staging.imgix.net/avatars/589a438fa4320.jpeg?ixlib=php-1.1.0",
"full_name": "Zxc Zxc",
"id": 59,
"official_title": "Zxc Zxc",
"type": "user"
},
"user_petition": null,
"zone": "non_prioritized"
},
{
"answers": [
{}
],
"description": "Some poll here",
"description_html": "Some poll here",
"entity": {
"id": 201,
"type": "question"
},
"expire_at": "Wed, 15 Feb 2017 18:58:41 +0000",
"id": 388,
"image_src": "https://img.youtube.com/vi/iOmgD_aCSPM/0.jpg",
"owner": {
"avatar_file_path": "https://api-staging.powerli.ne/bundles/civixfront/img/default_group.png",
"group_type": 0,
"id": 136,
"official_name": "Zxcgroup1",
"type": "group"
},
"picture": null,
"poll": {
"answers_count": 0,
"educational_context": [
{
"id": 59,
"imageSrc": null,
"text": "https://youtu.be/iOmgD_aCSPM",
"type": "video"
}
],
"is_subscribed": true
},
"post": null,
"rate_down": null,
"rate_up": null,
"read": false,
"responses_count": 0,
"sent_at": "Tue, 14 Feb 2017 18:58:41 +0000",
"title": "",
"updated_at": "2017-02-14T18:58:41+0000",
"user": {
"avatar_file_name": "https://powerline-staging.imgix.net/avatars/589a438fa4320.jpeg?ixlib=php-1.1.0",
"full_name": "Zxc Zxc",
"id": 59,
"official_title": "Zxc Zxc",
"type": "user"
},
"user_petition": null,
"zone": "non_prioritized"
},
{
"answers": [
{}
],
"description": "Test",
"description_html": "Test",
"entity": {
"id": 200,
"type": "payment-request"
},
"expire_at": "Wed, 15 Feb 2017 18:51:43 +0000",
"id": 387,
"image_src": "https://img.youtube.com/vi/iOmgD_aCSPM/0.jpg",
"owner": {
"avatar_file_path": "https://api-staging.powerli.ne/bundles/civixfront/img/default_group.png",
"group_type": 0,
"id": 136,
"official_name": "Zxcgroup1",
"type": "group"
},
"picture": null,
"poll": {
"answers_count": 0,
"educational_context": [
{
"id": 58,
"imageSrc": null,
"text": "https://youtu.be/iOmgD_aCSPM",
"type": "video"
}
],
"is_subscribed": true
},
"post": null,
"rate_down": null,
"rate_up": null,
"read": false,
"responses_count": 0,
"sent_at": "Tue, 14 Feb 2017 18:51:43 +0000",
"title": "Vday",
"updated_at": "2017-02-14T18:51:43+0000",
"user": {
"avatar_file_name": "https://powerline-staging.imgix.net/avatars/589a438fa4320.jpeg?ixlib=php-1.1.0",
"full_name": "Zxc Zxc",
"id": 59,
"official_title": "Zxc Zxc",
"type": "user"
},
"user_petition": null,
"zone": "non_prioritized"
},
I see only a right link to this video in your newsfeed.
Okay - so this must a frontend issue. The address must somehow become manipulated or truncated somehow... The video that should be showing is this one https://www.youtube.com/watch?v=iOmgD_aCSPM
and the thumbnail is https://img.youtube.com/vi/iOmgD_aCSPM/0.jpg (me), not whatever is in the screenshot above.
This is a frontend issue apparently. The payload has all the correct information.
Whenever I attach a YouTube link to an item (e.g. poll, fundraiser, etc.), the video that is displayed is NOT the same as the video I attached.
See below. User ZXC created a poll and attached video link: https://www.youtube.com/watch?v=iOmgD_aCSPM . (Seems to happen whether its short youtube URL or long youtube URL)
Instead, a different video appeared. I'm not sure if the link is being manipulated / stored incorrectly or served incorrectly... Please investigate @igaponov and assign to David if necessary.