Ho appena provato ad aggiungere un link in evidenza a un argomento, ma viene utilizzato l’URL come titolo. Credo che sarebbe utile se il sistema cercasse prima di Onebox e, se non riesce a trovarlo, utilizzasse il titolo della pagina come titolo dell’argomento. Se anche questo fallisce, potrebbe semplicemente usare l’URL come fa attualmente.
Vorrei iniziare a utilizzare i link in evidenza in una categoria dedicata, ma ciò che non vogliamo sono gli URL come titoli; quindi, aggiungere questa funzionalità sarebbe di grande aiuto. Il sistema sta già controllando il sito, quindi dovrebbe essere abbastanza semplice recuperare il titolo mentre è lì.
Did the team have any thoughts on this after? I think this could be a cool feature and I wonder if the following could make it more useable?
User pastes link in title field
The preview pane indicates it has been added (“Featured link: URL ”)
Discourse fetches onebox info for title and body (like it does now)
If onebox doesn’t work Discourse fetches title of page for title
If 3 and 4 fail and it’s left with just a URL, Discourse strips it from the title field which will prompt the user to manually add a title - however they’ll see the link has been added as it will show in the preview pane