יהיה ממש נחמד אם קישורים ישותפו לכותרת במקום (רק) לגוף הפוסט, כך שהכותרת תאוכלס אוטומטית בדיוק כמו שזה קורה אם עושים את זה בתוך אתר.
האם יש סיבה כלשהי לכך שגוף הפוסט הוא היעד?
This feature request centers on improving how links are shared to the Discourse PWA. Originally, sharing a link would only populate the post body, not the title. merefield initiated the request, questioning the logic behind sharing to the body instead of the title merefield. @Falco attempted to pinpoint the PR that originally introduced the feature but found it difficult to trace Falco. Discussion arose around detecting link-based shares versus textual content [Falco](/t/-/365156/4, merefield. merefield then created a plugin—discourse-share-to-link-oneboxer—to support both text and link shares, with text going to the body, titles to the title, and links to the title with onebox rendering merefield. A pull request PR -32631 was submitted merefield and subsequently merged by @Falco Falco. merefield thanked @Falco for reviewing the PR. merefield has confirmed the update is working, noting Android provides a better experience for discourse users and marking the feature as completed [merefield](/t/-/365156/12, merefield.
יהיה ממש נחמד אם קישורים ישותפו לכותרת במקום (רק) לגוף הפוסט, כך שהכותרת תאוכלס אוטומטית בדיוק כמו שזה קורה אם עושים את זה בתוך אתר.
האם יש סיבה כלשהי לכך שגוף הפוסט הוא היעד?
האם תסכים ל-PR כאן או שיש סיבה שבגללה זה נעשה באופן זה?
@Falco באיזה PR הוכנסה תכונה זו (ביקרתי אך לא הצלחתי למצוא אותה)?
This been a loooooong time ago, but won’t this break when you aren’t sharing a link but a textual content?
At least you’d had to detect if the sharing text is a link and send it to the proper field.
Yeah, that’s presumably more challenging because aren’t you just GETing a URL e.g. https://blah.com/new-topic? ...
But happy to take a look
אם רוב האתרים שולחים רק URL בימינו, הייתי שמח עם השינוי.
I’ve found the code
and I’ll take a look if we can handle both … but agree URL’s are probably sent 99% of the time, so worth considering …
OK I’ve worked out how to support both:
Currently the update is in a working plugin:
https://github.com/merefield/discourse-share-to-link-oneboxer
I’ll submit this as a PR as really a no brainer.
Tested this on both Android and Windows (Edge) PWAs and seems to work great.
תזכורת עדינה @Falco
אוחד, תודה על הבקשה!
תודה על הביקורת!
Confirmed this is working on latest rebuild
Another reason to consider Android over iOS for your next phone
if addicted to Discourse-land ![]()
I think we can mark this as Completed?