Title is too short when when you create a topic from a link

AI-generated summary

Title Truncation Issue

A discussion was started by CamilleRoux regarding the title truncation issue when creating a topic from a link. The title gets cut off at 50 characters, which seems too low. codinghorror suggests grabbing the title earlier in the pipeline to avoid truncation. neil is aware of the issue and wonders whether the truncation should be applied to the onebox or the title.

jomaxro proposes truncating the onebox at a higher character limit (around 80-90) while keeping the topic title at its maximum length. neil has updated the Onebox gem to truncate after complete words and increased the title character limit to 80.

The title is truncated too short when when you create a topic from a link.

Same thing here:

3개의 좋아요

Yeah we don’t want this truncated @neil so we need to grab the title earlier in the pipeline.

3개의 좋아요

OK. I think that’s been the onebox behaviour forever. I guess we’re aware of it now because of topic link.

1개의 좋아요

So we don’t want to truncate the title in the onebox? Or in the title? Both? We need some sort of limit, but currently 50 chars is where it gets cut off which seems too low, and word boundaries aren’t being used.

2개의 좋아요

If it were up to me, the onebox would be truncated at however many characters can typically fit in the box. Eyeballing it is seems that something closer to 80/90 would be good. The topic title should be whatever the maxiumum topic title length is.

1개의 좋아요

I updated the Onebox gem to truncate after complete words and include 80 chars in titles instead of 50.

8개의 좋아요