mirror of
https://github.com/friendica/friendica
synced 2025-05-03 14:24:09 +02:00
Allow using punctuation chars as smiley delimiters
This commit is contained in:
parent
d45e9d6af2
commit
d493946ba4
7 changed files with 95 additions and 54 deletions
|
@ -42,7 +42,7 @@ class TransmitterTest extends FixtureTest
|
|||
$note = Transmitter::createNote($post);
|
||||
$this->assertNotNull($note);
|
||||
|
||||
$this->assertEquals(':like: :friendica: no <code>:dislike</code> :p: :embarrassed:', $note['content']);
|
||||
$this->assertEquals(':like: :friendica: no <code>:dislike</code> :p: :embarrassed: ❤', $note['content']);
|
||||
$emojis = array_fill_keys(['like', 'friendica', 'p', 'embarrassed'], true);
|
||||
$this->assertEquals(count($emojis), count($note['tag']));
|
||||
foreach ($note['tag'] as $emoji) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue