lassik / phpbb-ext-telegramnotifications

Notify on Telegram whenever someone posts on phpBB
GNU General Public License v2.0
11 stars 7 forks source link

Issues in forum post preview for Telegram #12

Open lassik opened 6 years ago

lassik commented 6 years ago

BBCode and [quote]s should be removed from Telegram previews of forum posts:

@jan-2017:

But there are no notification lines displayed in the Messanger if, for example, a quote is too long. The message after the quote will probably not be shown. The user wants to read the message and not the quote content. My suggestion would be to shorten the citation length and to show only a certain number of the beginning and end of the quote.Then there is more space for the actual message.

@lassik:

I agree. I tried to remove the bbcode (the [quote] and other such stuff) to leave only the plain text. I used https://wiki.phpbb.com/Function.strip_bbcode but could not get it to work easily - it removed all of the message text, leaving an empty message :) If you know how to do it (without writing our own bbcode parser or using regexps) please let me know.

The notifications about quoted messages definitely look weird right now and it would be great to have them fixed.

Some other problems: