Nazar Gargol
3ca25886eb
Removed redundant context passing
...
- Context object is not needed when model is used directly
2019-11-07 17:09:30 +07:00
Nazar Gargol
cc581c66ce
Inlined context use so it matches convention used in most of the codebase
2019-11-07 16:45:53 +07:00
Peter Zimon
47bc7c400c
Fixed pre style for email template
2019-11-07 16:31:48 +07:00
Nazar Gargol
fdba1cb95b
Updated status handling
...
- We need to distinguish 2 stages before and after attempted sending of the email
2019-11-07 16:26:34 +07:00
Nazar Gargol
b364fc5e35
Not creating email record when there is nobody to send it to
2019-11-07 16:00:18 +07:00
Nazar Gargol
640f7155fc
Fixed linter
2019-11-07 11:47:15 +07:00
Nazar Gargol
f34f4a7b8d
Added comment to addEmail method
2019-11-07 11:47:15 +07:00
Nazar Gargol
eca129c18d
Hooked mega service to listen to email.added event
...
- This was needed because we switched to synchronous request handling (to allow including email data with post.publish event)
2019-11-07 11:47:15 +07:00
Rish
86d6fc8578
Serialized post html for email
...
no issue
2019-11-07 11:15:16 +07:00
Rish
898c354644
Added [Test] for preview email subject
2019-11-06 19:20:12 +07:00
Peter Zimon
4b24780ebd
Refined figcaption size in emails
2019-11-06 18:35:03 +07:00
Rish
6357d0c79b
Fixed custom subject in email preview
2019-11-06 18:32:11 +07:00
Fabien O'Carroll
81b9018526
Passed unsubscribeUrl template variable to bulk email
...
no-issue
2019-11-06 18:08:11 +07:00
Fabien O'Carroll
00db1d385c
Added createUnsubscribeUrl fn to mega
...
no-issue
2019-11-06 18:08:11 +07:00
Rish
4db260f17e
Added authors to email preview template
2019-11-06 18:03:46 +07:00
Peter Zimon
4bd5b1c435
Added unsubscribe URL
2019-11-06 16:19:21 +07:00
Peter Zimon
36f7a88b84
Added current year in email footer
2019-11-06 16:17:03 +07:00
Nazar Gargol
055fc6b09a
Added email record after mage service sends an email
2019-11-06 15:56:56 +07:00
Peter Zimon
2c55b82be1
Refined email template
2019-11-06 15:47:20 +07:00
Peter Zimon
d6e8db28ab
Refined email template
2019-11-06 15:39:27 +07:00
Fabien O'Carroll
030819dc9e
Added eslint ignore comments for template
...
no-issue
2019-11-06 15:30:37 +07:00
Fabien O'Carroll
73b00e77c2
Added unsubscribe handler to mega service
...
no-issue
2019-11-06 15:30:37 +07:00
Peter Zimon
c2633b09ea
Refined post email template
2019-11-06 14:53:40 +07:00
Rish
3e331fcf86
Fixed lint
2019-11-06 12:15:03 +07:00
Rish
686e0143c7
Added date formatting for email post data
...
no issue
2019-11-06 12:06:24 +07:00
Peter Zimon
7f3a1e93ae
Working on email template
2019-11-06 10:21:58 +07:00
Nazar Gargol
d0bf6e8579
Filtered out members which are unsubscribed in mailing service
2019-11-05 17:00:21 +07:00
Peter Zimon
b2f86315c0
Updated post email template
2019-11-05 16:37:12 +07:00
Rish
4a53184d7f
Added send preview email API
...
no issue
2019-11-05 16:09:18 +07:00
Nazar Gargol
5d76ceef8b
Added plaintext field to email preview response
2019-11-05 15:04:48 +07:00
Fabien O'Carroll
d1812281f7
Updated serialisation to use current attributes
...
no-issue
We were getting some funny behaviour before this because some previous
attributes were just the defaults, when a post was new
2019-11-05 12:53:14 +07:00
Fabien O'Carroll
84300747a9
Added content gating to the mega service
...
no-issue
2019-11-05 12:53:14 +07:00
Nazar Gargol
a527a08cb0
Fixed linter error
2019-11-05 12:24:28 +07:00
Nazar Gargol
c913b0cbbf
Extracted post email serializer from mega service
2019-11-05 12:15:50 +07:00
Fabien O'Carroll
3b11d25170
Fixed check for send_email_when_published
...
no-issue
2019-11-05 11:28:16 +07:00
Peter Zimon
5aaee4e8b2
Fixed post serialisation
2019-11-05 11:20:03 +07:00
Naz Gargol
977298b6e1
Added basic HTML template support to MEGA ( #11336 )
...
no issue
- Sends formatted email to members
- Added css inlining support for MEGA template
- Migrated MEGA service to use API serializers
- Service needs to be compliant with the API to be able to serve absolute URLs for resources like images
- Fixed send email check for previously sent mails
2019-11-04 17:53:42 +07:00