هل يجب على ديسكورس جلب العنوان إذا لم يعمل ون بوكس للروابط المميزة؟

لقد جربت للتو إضافة رابط مميز إلى موضوع، لكنه يستخدم عنوان URL كعنوان. أعتقد أنه سيكون من الجيد أن يتحقق النظام أولاً من Onebox، وإذا لم يتمكن من ذلك، فيستخدم عنوان الصفحة كعنوان للموضوع. وإذا فشل ذلك، فيمكنه ببساطة استخدام عنوان URL كما يفعل الآن.

أود البدء في استخدام الروابط المميزة في فئة مخصصة، لكننا لا نريد حقًا أن تكون عناوين URL هي العناوين، لذا فإن إضافة هذه الميزة ستساعد كثيرًا. فالنظام يتحقق من الموقع على أي حال، لذا يجب أن يكون من السهل نسبيًا استخلاص العنوان أثناء وجوده هناك.

إعجاب واحد (1)

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?

  1. User pastes link in title field
  2. The preview pane indicates it has been added (“Featured link: URL :white_check_mark:”)
  3. Discourse fetches onebox info for title and body (like it does now)
  4. If onebox doesn’t work Discourse fetches title of page for title
  5. 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

:smiley: