mastodon/app
trwnh 89e1974f30
Make account endorsements idempotent (fix #19045) (#20118)
* Make account endorsements idempotent (fix #19045)

* Accept suggestion to use exists? instead of find_by + nil check

Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh>

* fix logic (unless, not if)

* switch to using `find_or_create_by!`

Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh>
2022-11-08 16:39:15 +01:00
..
chewy Change algorithm of tootctl search deploy to improve performance (#18463) 2022-05-22 22:16:43 +02:00
controllers Make account endorsements idempotent (fix #19045) (#20118) 2022-11-08 16:39:15 +01:00
helpers Change sign-in banner to reflect disabled or moved account status (#19773) 2022-11-05 18:28:13 +01:00
javascript Fix redrafting a currently-editing post not leaving edit mode (#20023) 2022-11-08 04:06:54 +01:00
lib Change Request connection logic to try both IPv6 and IPv4 when available (#20108) 2022-11-08 16:36:26 +01:00
mailers Add support for language preferences for trending statuses and links (#18288) 2022-10-08 16:45:40 +02:00
models Micro-optimization: use if/else instead of Array#compact and Array#min (#19906) 2022-11-08 03:50:47 +01:00
policies Add ability to view previous edits of a status in admin UI (#19462) 2022-10-26 13:42:29 +02:00
presenters Change sign-in banner to reflect disabled or moved account status (#19773) 2022-11-05 18:28:13 +01:00
serializers Fix missing cast of status and rule IDs to string (fix #19048) (#20122) 2022-11-08 16:37:41 +01:00
services Fix validation error in SynchronizeFeaturedTagsCollectionWorker (#20018) 2022-11-07 22:35:53 +01:00
validators Fix error when uploading malformed CSV import (#19509) 2022-10-28 23:30:44 +02:00
views Add password autocomplete hints (#20071) 2022-11-08 03:53:06 +01:00
workers Fix followers count not being updated when migrating follows (#19998) 2022-11-07 15:38:55 +01:00