renamed the `heart` modifier to `love`

master
Aevann 2023-08-17 18:37:30 +03:00
parent 41f5992231
commit 7e4c8018e3
23 changed files with 8 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -111,7 +111,7 @@ const findAllEmoteEndings = (word) => {
continue;
}
if(currWord.endsWith('heart')) {
if(currWord.endsWith('love')) {
if(currEndings.indexOf(MODIFIERS.LOVE) !== -1) {
hasReachedNonModifer = true;
continue;

View File

@ -246,12 +246,12 @@ def find_all_emote_endings(word):
curr_word = curr_word[:-8]
continue
if curr_word.endswith('heart'):
if 'heart' in endings:
if curr_word.endswith('love'):
if 'love' in endings:
is_non_ending_found = True
continue
endings.append('heart')
curr_word = curr_word[:-5]
endings.append('love')
curr_word = curr_word[:-4]
continue
is_non_ending_found = True
@ -297,7 +297,7 @@ def render_emoji(html, regexp, golden, emojis_used, b=False, is_title=False):
is_talking = 'talking' in ending_modifiers
is_patted = 'pat' in ending_modifiers
is_talking_first = ending_modifiers.index('pat') > ending_modifiers.index('talking') if is_talking and is_patted else False
is_loved = 'heart' in ending_modifiers
is_loved = 'love' in ending_modifiers
is_genocided = 'genocide' in ending_modifiers
is_user = emoji.startswith('@')

View File

@ -37,7 +37,7 @@ def submit_emojis(v):
return render_template("submit_emojis.html", v=v, emojis=emojis)
emoji_modifiers = ('pat', 'talking', 'genocide', 'heart')
emoji_modifiers = ('pat', 'talking', 'genocide', 'love')
@app.post("/submit/emojis")
@limiter.limit('1/second', scope=rpath)

View File

@ -43,7 +43,7 @@
<label class="emoji-option" for="emoji-sel-4">Genocide</label>
</div>
<div style="display: inline" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Makes Marsey love this emoji!">
<input type="checkbox" id="emoji-sel-5" value="heart" class="emoji-postfix">
<input type="checkbox" id="emoji-sel-5" value="love" class="emoji-postfix">
<label class="emoji-option" for="emoji-sel-5">Love</label>
</div>
</fieldset>