Logo
Explore Support Help
Register Sign In
tykayn/mastodon
1
0
Fork 0
You've already forked mastodon
mirror of https://framagit.org/tykayn/mastodon.git synced 2023-08-25 08:33:12 +02:00
Code Issues Projects Releases Wiki Activity
mastodon/app/javascript/flavours/glitch/util/compare_id.js

12 lines
216 B
JavaScript
Raw Normal View History

[Glitch] Add option to disable real-time updates in web UI Port 729723f857d11434c0f78d63fe16537d77f1c77c to glitch-soc Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-07-16 06:30:47 +02:00
export default function compareId (id1, id2) {
[Glitch] Fix comparing id Port 0ba49eca8b49c6ce0ec04fd546951c95938da4e6 to glitch-soc
2018-05-27 19:33:28 +02:00
if (id1 === id2) {
return 0;
}
[Glitch] Add option to disable real-time updates in web UI Port 729723f857d11434c0f78d63fe16537d77f1c77c to glitch-soc Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-07-16 06:30:47 +02:00
[Glitch] Fix comparing id Port 0ba49eca8b49c6ce0ec04fd546951c95938da4e6 to glitch-soc
2018-05-27 19:33:28 +02:00
if (id1.length === id2.length) {
return id1 > id2 ? 1 : -1;
} else {
return id1.length > id2.length ? 1 : -1;
}
[Glitch] Add option to disable real-time updates in web UI Port 729723f857d11434c0f78d63fe16537d77f1c77c to glitch-soc Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-07-16 06:30:47 +02:00
};
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 55ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API Help
Logo Chapril
Accueil Chapril
Services libres
Nous suivre
CGU
Mentions légales
Nous contacter
Accueil Chapril
Services libres
Nous suivre
CGU
Mentions légales
Nous contacter