GoToSocial/internal
Sam Lade f559d46261
[bugfix] Fix failure to look up remote profiles with duplicate emojis in some cases (#1534)
* Tidy up emoji parsing on profile submission

Don't bother reparsing for emoji unless one of the fields that can have
emoji in it has changed.
Deduplicate emoji between the display name and profile note - I'm not
sure whether this was hurting anything, but better safe.

* Deduplicate emoji when parsing remote accounts

Some servers - Misskey at least - don't deduplicate emoji, so it's
possible to get an account which has the same emoji used in both the
display name and note and therefore includes that emoji twice in its
metadata. When we start trying to put those into our database, we run
into a uniqueness constraint and fall over.

This change just deduplicates at the point of construction of an
account.
2023-02-20 16:27:41 +01:00
..
ap [bugfix] Fix failure to look up remote profiles with duplicate emojis in some cases (#1534) 2023-02-20 16:27:41 +01:00
api [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
cache [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
concurrency [chore] Update more log calls to include context (#1517) 2023-02-17 19:05:43 +00:00
config [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
db [bugfix] In Postgres, drop shortcodedomain constraint before creating new emoji table (#1528) 2023-02-18 17:54:51 +01:00
email [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
federation [chore] Update more log calls to include context (#1517) 2023-02-17 19:05:43 +00:00
gotosocial [performance] processing media and scheduled jobs improvements (#1482) 2023-02-13 18:40:48 +00:00
gtserror [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
gtsmodel [bugfix] Fix up `error getting account avatar/header` errors, other small fixes (#1496) 2023-02-13 20:19:51 +00:00
httpclient [chore] Move request validation earlier in client (#1531) 2023-02-19 11:01:15 +00:00
id [chore] reformat GetAccount() functionality, support updating accounts based on last_fetch (#1411) 2023-02-03 20:03:05 +00:00
iotools [bugfix] Parse video metadata more accurately; allow Range in fileserver (#1342) 2023-01-16 16:19:17 +01:00
log [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
media [bugfix] Keep png transparency (#1522) 2023-02-18 16:52:15 +01:00
messages [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
middleware [bug] Pass context in logging middleware (#1514) 2023-02-17 12:37:57 +01:00
netutil [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
oauth [bugfix] fix oob token route, update templates+css for oob and errors (#1519) 2023-02-18 16:47:42 +01:00
oidc [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
processing [bugfix] Fix failure to look up remote profiles with duplicate emojis in some cases (#1534) 2023-02-20 16:27:41 +01:00
regexes [feature] Federate reports to remote instance as Flag (if desired) (#1386) 2023-01-27 14:48:11 +01:00
router [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
state [performance] processing media and scheduled jobs improvements (#1482) 2023-02-13 18:40:48 +00:00
storage [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
stream [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
text [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
timeline [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
trans [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
transport [chore] transport improvements (#1524) 2023-02-18 17:02:19 +01:00
typeutils [chore] Update more log calls to include context (#1517) 2023-02-17 19:05:43 +00:00
uris [feature] Implement Report database model and utility functions (#1310) 2023-01-10 14:19:05 +00:00
util [chore] Text formatting overhaul (#1406) 2023-02-03 11:58:58 +01:00
validate [chore] reformat GetAccount() functionality, support updating accounts based on last_fetch (#1411) 2023-02-03 20:03:05 +00:00
visibility [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
web [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
workers [performance] processing media and scheduled jobs improvements (#1482) 2023-02-13 18:40:48 +00:00