# Запрос функции: при публикации в PWA Discourse ссылаться на заголовок, а не на тело сообщения

**URL:** https://meta.discourse.org/t/feature-request-link-to-title-not-body-when-sharing-to-discourse-pwa/365156
**Category:** Feature
**Tags:** completed
**Created:** [02.Май.2025 22:12:00 UTC](https://meta.discourse.org/t/feature-request-link-to-title-not-body-when-sharing-to-discourse-pwa/365156 "2025-05-02T22:12:00Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [07.Май.2025 21:17:49 UTC](https://meta.discourse.org/t/feature-request-link-to-title-not-body-when-sharing-to-discourse-pwa/365156/7 "2025-05-07T21:17:49Z")

</div>

Отлично, я разобрался, как поддерживать оба варианта:

- текстовые ссылки будут отправляться в тело сообщения
- заголовки — в поле заголовка
- ссылки на ресурсы будут отправляться в поле заголовка (а затем отображаться как полностью раскрытый заголовок, а в теле сообщения — как красивая onebox при инициализации со всеми сопутствующими функциями, включая предпросмотр тем)

На данный момент обновление доступно в рабочем плагине:

> **[GitHub - merefield/discourse-share-to-link-oneboxer: Modifies the PWA manifest so links shared to the...](https://github.com/merefield/discourse-share-to-link-oneboxer)**
>
> Modifies the PWA manifest so links shared to the Discourse populate the title not the body so the title is hydrated based on metadata of target and a onebox is added to the body

Я отправлю это как PR, так как это действительно очевидное решение.

Протестировал это на PWA для Android и Windows (Edge), и всё работает отлично.

---

_[View the full topic](https://meta.discourse.org/t/feature-request-link-to-title-not-body-when-sharing-to-discourse-pwa/365156)._
