docbrown/app
Andy Zhao 0f15b8dbd3
Don't try to unsub users when destroying if Mailchimp is not enabled (#12331)
* Use proper Mailchimp newsletter IDs respective to methods

* Add guard clauses when Mailchimp newsletter isn't enabled

* Rubocop correction

* Only unsub after destroy if Mailchimp newsletter is enabled

* Refactor a bit

* Fix typo

* Fix boolean logic for guard clauses

* Update tests to account for new SiteConfig logic

* Break guard clause into two clauses
2021-01-20 12:32:35 -05:00
..
assets Report a Message in Connect (#12229) 2021-01-19 12:07:47 -05:00
black_box Small adjustment to blackbox.rb (#10961) 2020-10-20 21:14:56 -04:00
controllers Report a Message in Connect (#12229) 2021-01-19 12:07:47 -05:00
decorators Improve cumulative layout shift on comment reactions + optimizations (#12309) 2021-01-18 19:29:44 -05:00
errors [deploy] Add contexts and permissions to liquid tags (#8917) 2020-06-30 14:53:18 -04:00
helpers Improve cumulative layout shift on comment reactions + optimizations (#12309) 2021-01-18 19:29:44 -05:00
javascript Report a Message in Connect (#12229) 2021-01-19 12:07:47 -05:00
lib generalise sidebar campaign published article timeframe (#12278) 2021-01-19 08:40:39 -06:00
liquid_tags Bump liquid from 4.0.3 to 5.0.0 (#12150) 2021-01-15 15:37:42 -06:00
mailers Replace collective_noun with community_name (#11846) [deploy] 2020-12-28 09:34:17 -07:00
middlewares Move TimeZoneSetter middleware in proper place (#11336) 2020-11-09 17:11:10 +01:00
models Don't try to unsub users when destroying if Mailchimp is not enabled (#12331) 2021-01-20 12:32:35 -05:00
policies Remove contact_consent from users (#12196) 2021-01-12 16:18:47 -05:00
queries/admin Filter by a few other roles when adding potential mods (#11187) 2020-11-02 15:05:19 -05:00
refinements Drop profile columns from user (#10707) 2020-12-03 08:14:38 +07:00
sanitizers [deploy] Rubocop: fix violations of Layout/LineLength (#9197) 2020-07-08 08:36:36 -05:00
serializers Reindex comments' Elasticsearch doc when commentable is updated (#12330) 2021-01-20 09:44:59 -05:00
services Don't try to unsub users when destroying if Mailchimp is not enabled (#12331) 2021-01-20 12:32:35 -05:00
uploaders [deploy] Bug Fix: Validate GIFs Frames and Add MiniMagick Timeout (#9319) 2020-07-15 09:49:24 -05:00
validators Fix misleading comment (#11847) 2020-12-10 12:34:23 -06:00
view_objects Move GeneratedImage to Images::GenerateSocialmage (#11691) 2020-12-02 11:03:14 +07:00
views add permalinks to editor guide headings (#12347) 2021-01-20 14:39:05 +00:00
workers Move MailchimpBot to Mailchimp::Bot service (#12205) 2021-01-12 10:28:48 -05:00