I have the following problem. I'm using turbo in a forum with a comment tree.
Commentary_1
id="reply_to_commentary_1"
Commentary_2
id="reply_to_commentary_2"
Commentary _2_1
id="reply_to_commentary_2_1"
When someone inserts a comment on for example Commentary _2_1, that comment is inserted into the id "reply_to_commentary_2_1" via turbo_stream for everyone on that page.
And the picture turns out
Commentary_1
id="reply_to_commentary_1"
Commentary_2
id="reply_to_commentary_2"
Commentary _2_1
id="reply_to_commentary_2_1"
Commentary_2_1_1
id="reply_to_commentary_2_1_1"
But if you do not reload the page, and someone clicks on the answer to Commentary_2_1_1 and answers there. The impression is that turbo_stream does not see the id "reply_to_commentary_2_1_1" and cannot insert it there
Related
Is there a way to construct a URL that will lead directly to the comment left by someone on a blog article?
For exammple, is there a way to construct a URL that will lead directly to the comment left by Alexander in the following blog article?
http://zeroseconde.blogspot.com/2008/09/fin-du-papier.html
Similarly, is there a way to construct a URL that will lead directly to the comment left by jokeefe on the following blog article?
https://www.metafilter.com/74067/The-Image-Mill
You mean like this? -> http://zeroseconde.blogspot.com/2008/09/fin-du-papier.html?showComment=1223573700000#c4070187594579786156
If so, simply right click on the comment date and copy the url.
The same works to get the URL for jokeefe's comment in the second question.
I have a Quip document on which others have made comments. How can I print the document with the comments? Failing that, how can I print the comments alone?
Did the format of the UID for comments on video posts has changed? We are noticing examples of comments that previously had one id via api, and are now coming back with a different id. This is causing us to save duplicate data, because we can't programmatically determine that they are the same comment.
The issue appeared start approximately Dec 5, 2017.
Example - these two comments appear to be the same comment, just sent twice with different ids. The "external id" below is the youtube UID:
title Comment from nah28
link https://www.youtube.com/watch?v=n1pRzwFf1lo&lc=z233st5hoofjvbl5f04t1aokglljav4mscz3jhkng02qrk0h00410
publishedDate 2017-11-16 20:14:31
dateFound 2017-11-16 20:16:38
externalId z233st5hoofjvbl5f04t1aokglljav4mscz3jhkng02qrk0h00410
title Comment from nah28
link https://www.youtube.com/watch?v=n1pRzwFf1lo&lc=UgyMXm2SWEfG9sJsAK14AaABAg
publishedDate 2017-11-16 20:14:31
dateFound 2017-12-06 12:17:58
externalId UgyMXm2SWEfG9sJsAK14AaABAg
Confirm!
I didn't find any changelists related, but we're using comment IDs to uniquely identify comments, and now we're having duplicates of comments of tracked videos.
I wonder if there's a way to obtain somehow old comment id
I have built a simple website and have the requirement to display all post from a blog for a year.
For example www.mysite.com/blogs/2015 should display all posts of 2015.
However, this year is not the real creation date of the post but it is given as input while creating the post (I have added new field to the editor).
I should also have a way to access a post with a unique URL like www.mysite.com/blogs/2015/2, which should display the second post of 2015.
The post number is unique for the year. So I cannot use the content id.
I was able to make this work with my own controller, but an issue remains:
When posts are listed it will attach the URL created by the AutoroutePart, which will be like www.mysite.com/blogs/first-post.
I attempted to change this URL while creating the post by updating the Path property of the AutoroutePart but had no luck.
Any suggestions or advise are appreciated.
You can define you own route for any content item which has the AutoroutePart.
Example in you situation you need to edit the content definition of the blog posts. So under the Content Definition menu you select Blog Post, then edit, then you click on the expando arrow next to the Autoroute label and you'll see the Patterns field where you can define your own pattern.
I have been trying to get a list of comments out using the new V3 Data API with mixed results.
For some videos, you only get a subset of comments out. I have noticed this on a few videos, but for this specific case I will use video ID = U55NGD9Jm7M
You can find all the comments on this video in the WebUI here: https://www.youtube.com/all_comments?v=U55NGD9Jm7M
At the time of posting, there were 5,499 comments on this video.
API Results:
When querying https://www.googleapis.com/youtube/v3/commentThreads?part=id,snippet,replies&textFormat=plainText&maxResults=100&videoId=U55NGD9Jm7M&key={YOUR_API_KEY} I am only getting about 317 comments (including Paging, and counting all replies) (sorted chronologically).
Verification Research:
If you select "Top Comments" from the drop down and then scroll down and click "More" over and over again, you get over 1,000 comments (I stopped at about 1,000)
If you then select "Newest First" from the dropdown and repeat the process (more ... more ... more) you will find that there are about 317 comments before you are unable to show any more comments.
I find it quite odd that there is a discrepancy in the UI, but thankful that the API lines up with part of the UI. Has anyone else noticed this? Is there a way to get the full text of all 5,499 comments?
Thanks!
Jason
Follow-up 1
As a follow-up, I was able to isolate one comment using View->Source (Thread ID z12wzfzhtybgz13kj22ocvsz2unrtn1qj04) and fetch all the information from this comment in the API here: https://www.googleapis.com/youtube/v3/commentThreads?part=id%2Csnippet%2Creplies&id=z12wzfzhtybgz13kj22ocvsz2unrtn1qj04&maxResults=100&key={YOUR_API_KEY})
It even mentions the correct VideoID that the comment is associated with. However, when you query by Video, this comment ID is not returned.
Follow-up 2
I refresh the Web UI of the All Comments, and there was a significantly different list of comments that are being returned
The commentsThread.list call can only return a maximum of 100 results (see maxResults in the documentation). If you wanted to get more comment threads, you'd have to pass in the nextPageToken you get from your initial call into a subsequent API call.
For example:
https://www.googleapis.com/youtube/v3/commentThreads?part=snippet&videoId=U55NGD9Jm7M&maxResults=100&key=API_KEY
gives you 100 comment threads, and the nextPageToken is Cg0Qk9fa7fHgxgIgACgBEhQIARCY49LZ5eDGAhi4rNGIrZrGAhgCIGM. If you include that token in a new API call, like so:
https://www.googleapis.com/youtube/v3/commentThreads?part=snippet&videoId=Dlj6SUg9B04&&maxResults=100&nextPageToken=Cg0Qk9fa7fHgxgIgACgBEhQIARCY49LZ5eDGAhi4rNGIrZrGAhgCIGM&key=API_KEY
You get a completely different set of comment threads. You can double check this by specifying order=time in both API calls. You'll see that the earliest comment threads for both calls are different, and you won't find the comment Thread ID for either in the other call's results. To get even more comment threads, you take the nextPageToken from the newer call's results and do the same thing again (until the call doesn't give you another nextPageToken, meaning you're on the last page, and there are no more comment threads to return).