Кто-то ответил на тему, за которой вы следите

This annoying prefix is new since recent updates. How do I get rid of it? My users dislike it intensely. It only just started happening along with other recent turbulence such as mail not going out.

I am unbale to figure out what template needs to be edited. Where does this preview stuff come from?

2 лайка

What do you mean? What prefix?

I think it is about this commit maybe?

And prefix = preview, I think

1 лайк

I think you can customize the individual preview texts as was suggested in Change in behaviour re mail - #11 by supermathie.
You can find more about editing texts in Customize text in Discourse

So, for example, to prevent “Someone replied to a topic you are Watching,” you would remove the site text in user_notifications.user_posted.preview. You cannot leave it empty, but you can use an invisible character like .

You can see the difference here:

You can do the same with all the other preview texts.

3 лайка

That’s very strange. The point of the change, as I see it, is to give people more info about why the message landed in their inbox. Funny that knowing that is something people would feel “intense” about. People just hate change.

2 лайка

The problem is not that information has been added. The problem is that by merely occupying part of the limited screen space available for message previews, the text takes away useful information that was there before - specifically, a line of text from the body of the message.

I pre-filter Discourse messages into a dedicated maibox, so I already know why the messages got there. I now see this new text in the preview of every message in that mailbox instead of text that actually previews the message. It’s not useful to me, and displaces something that is.

It also seems that this text appears for the first message of a new topic. In that case it simply isn’t true - the message isn’t a reply to anything.

Martyn

4 лайка

Oh. I’m convinced. That does seem terrible. You can customize that text, though (probably that was mentioned above and I’m too lazy to look back?). Maybe just “watching” or an eyeball emoji?

1 лайк

I’m not the admin of the Discourse server though, and in any case for all I know other users might like it. I can’t see anything to change it in my personal preferences.

Martyn

1 лайк

Then my solution doesn’t help!

Sorry

Just tagging onto this topic to say that our community’s users aren’t liking it either. Where the preview used to give them useful information, now it’s become meaningless.

-Brad

1 лайк

If you’re an admin you can change the text as i suggested.

I’m an admin of our Discourse instance, but not of our server (we’re an open-source project, benefitting from Discourse hosting our forums), so don’t believe I can make the change you suggested?

I’ve spent time today trying to improve things using the instructions provided by @Ethsim2 in:

but have been coming up short (I’d comment there, but that thread is closed). Specifically:

  • I tried removing %{header_instructions} from key templates (e.g., “User Mentioned”, “User Watching First Post”, “User Watching Category or Tag”) as suggested, but it didn’t seem to have any effect. Mails received after that point in OWA still just showed “Someone replied to a topic you are Watching” as their preview rather than a snippet of the message body.
  • In addition, with that change, the subject lines of our mails changed from “%{topic_title}” to “[%{email_prefix}] %{topic_title}” despite the fact that I didn’t touch the templates’ subject line boxes, just the bodies.

As @m1maj has said, I (and my users) feel baffled as to why OWA previews have gone from being a useful preview of the mail body to a boilerplate piece of text that overrides the actual message content and is sometimes inaccurate (e.g., showing up in mails that are first posts in a new topic in a watched category rather than being replies to a watched topic).

-Brad

1 лайк

Вы можете изменять тексты сайта прямо из интерфейса; для этого не нужен доступ к серверу. Мой пример был сделан на форуме, который также размещается в Discourse.

2 лайка

@Moin: Ага, спасибо, что поправили моё заблуждение! То, что я прочитал в этих обсуждениях, в сочетании с тем, что я не смог найти нужные настройки с первого раза, привело меня к мысли, что это не будет работать для сайтов, управляемых через Discourse. Но вы правы: это работает.

Для других,像我一样拥有 Discourse административных привилегий и, возможно, нуждающихся в помощи, вот краткое описание подхода:

  1. Нажмите на меню с тремя полосками в правом верхнем углу рядом с вашим значком пользователя и выберите «Настроить детали».
  2. Прокрутите вниз, пока не увидите «Тексты сайта» в левой боковой панели. У меня это последний пункт в разделе «Внешний вид».
  3. На этом этапе вы должны увидеть страницу «Тексты сайта», которая начинается с строки поиска. Введите .preview в эту строку поиска:
  4. Среди прочего это должно отфильтровать записи, такие как «user_notifications.user_quoted.preview», «user_notifications.user_posted.preview», «user_notifications.user_replied.preview», «user_notifications.user_mentioned.preview», которые были основными случаями, раздражавшими наших пользователей. Нажмите кнопки «Изменить» для любых из них, которые вы хотите изменить.
  5. Как говорит @Moin в связанном выше вопросе, их нельзя оставлять пустыми или просто заменять пробелом, но их можно установить в неразрывный пробел, например ’ '.
  6. Это приведет к тому, что старый текст предпросмотра будет заменен новым текстом. В случае с неразрывным пробелом, как в примере выше, это должно восстановить большую часть предыдущего текста предпросмотра из самого тела сообщения.

Еще раз спасибо, @Moin!
-Брэд

3 лайка