Jarek Radosz
5f7163b5bb
DEV: Extensively use `startsWith()` ( #17540 )
2022-07-17 20:16:39 +02:00
Isaac Janzen
196b791365
DEV: Prioritize full name when display_name_on_posts active ( #16078 )
...
See: https://meta.discourse.org/t/display-full-name-not-username-when-attributing-quote-or-reply/203533?u=isaacjanzen for context
The initial release [broke quoting](https://meta.discourse.org/t/quoting-broken-when-name-matches-username/217633?u=isaacjanzen ) but we now pass the username when
```
siteSettings.display_name_on_posts && !siteSettings.prioritize_username_in_ux && post.name
```
as well as the full name to guarantee that we are not getting any mismatches when querying for user / avatar.
eg.
```
[quote="Isaac Janzen, post:3, topic:7, full:true, username:isaac.janzen"]
bing bong
[/quote]
```
2022-04-20 10:07:51 -05:00
CommanderRoot
86a783b3ad
DEV: Replace deprecated String.prototype.substr() ( #16233 )
...
String.prototype.substr() is deprecated so we replace it with String.prototype.slice() which works similarily but isn't deprecated.
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
Co-authored-by: Jarek Radosz <jradosz@gmail.com>
2022-04-01 17:35:17 +02:00
Martin Brennan
599a72768c
DEV: Add force_quote_link option to PrettyText ( #16034 )
...
This option will make it so the [quote] bbcode will always
include the HTML link to the quoted post, even if a topic_id
is not provided in the PrettyText#cook options. This is so
[quote] bbcode can be used in other places, like chat messages,
that always need the link and do not have an "off-topic" ID
to use.
2022-02-23 16:13:46 +10:00
Ayke Halder
5ff3a9c4bb
DEV: add native lazy loading for emojis ( #15830 )
2022-02-09 12:18:59 +01:00
Ayke Halder
81e175e6ba
FIX: allow native lazy loading attribute for quoted avatar image ( #15834 )
2022-02-07 09:28:26 +08:00
Jarek Radosz
f414d5eace
DEV: Use method definition syntax consistently ( #14915 )
2021-11-13 14:01:55 +01:00
Rafael dos Santos Silva
83f332b5a5
FEATURE: Add a site setting to allow emojis to come from an external URL ( #12180 )
2021-03-02 16:04:16 -03:00
Joffrey JAFFEUX
c6a1042950
DEV: prettier 2.2.1 ( #11862 )
2021-01-27 12:39:20 +01:00
Krzysztof Kotlarek
dbec3792b7
FIX: pretty text allow list ( #10977 )
...
Reword whitelist to allowlist in pretty-text.
This library is used by plugins so we need deprecation notice.
2020-10-28 13:22:06 +11:00
Robin Ward
f3156a6478
REFACTOR: Move the `discourse-markdown` engine out of the addon repo
...
The reasoning here is that we want to make a unique bundle for this
folder and the default approach is to include everything in `addon`.
2020-09-18 11:42:22 -04:00
Robin Ward
79c64eaeff
DEV: Move pretty-text into an ember-addon format ( #9689 )
2020-05-07 12:37:47 -04:00
Joffrey JAFFEUX
a078b086ba
REFACToR: removes useless assignment to local variable ( #9675 )
2020-05-07 16:34:36 +02:00
Robin Ward
c150566506
Migrate pretty-text to `.js` extensions ( #9243 )
2020-03-20 09:55:42 -04:00