Commit 74bdef0
authored
Updated share button in newsletters to show on paid/member posts, and not show on email-only (TryGhost#27483)
no ref
Some small tweaks to the visibility of the share button when it's
toggled on for newsletters:
- if it's a paid/members-only post, we want to show the share button.
idea is that shares of that post can drive help drive conversion for
more members
- if it's an email-only newsletter, do _not_ show the share button. idea
is an email-only newsletter isn't meant to be shared as a link1 parent 82bc7b3 commit 74bdef0
3 files changed
Lines changed: 70 additions & 36 deletions
File tree
- ghost/core
- core/server/services/email-service
- test
- integration/services/email-service
- unit/server/services/email-service
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1042 | 1042 | | |
1043 | 1043 | | |
1044 | 1044 | | |
1045 | | - | |
1046 | | - | |
| 1045 | + | |
| 1046 | + | |
1047 | 1047 | | |
1048 | 1048 | | |
1049 | 1049 | | |
| |||
1068 | 1068 | | |
1069 | 1069 | | |
1070 | 1070 | | |
1071 | | - | |
1072 | 1071 | | |
1073 | 1072 | | |
1074 | 1073 | | |
| |||
Lines changed: 26 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
899 | 899 | | |
900 | 900 | | |
901 | 901 | | |
902 | | - | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
903 | 925 | | |
904 | 926 | | |
905 | 927 | | |
| |||
910 | 932 | | |
911 | 933 | | |
912 | 934 | | |
913 | | - | |
| 935 | + | |
| 936 | + | |
914 | 937 | | |
915 | 938 | | |
916 | | - | |
| 939 | + | |
917 | 940 | | |
918 | 941 | | |
919 | 942 | | |
| |||
Lines changed: 42 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1460 | 1460 | | |
1461 | 1461 | | |
1462 | 1462 | | |
1463 | | - | |
1464 | | - | |
| 1463 | + | |
1465 | 1464 | | |
1466 | 1465 | | |
1467 | 1466 | | |
| |||
1473 | 1472 | | |
1474 | 1473 | | |
1475 | 1474 | | |
1476 | | - | |
1477 | | - | |
1478 | | - | |
1479 | | - | |
1480 | | - | |
1481 | | - | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
1482 | 1480 | | |
1483 | | - | |
1484 | | - | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
1485 | 1491 | | |
1486 | 1492 | | |
1487 | | - | |
| 1493 | + | |
1488 | 1494 | | |
1489 | 1495 | | |
1490 | | - | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
1491 | 1502 | | |
1492 | 1503 | | |
1493 | 1504 | | |
| |||
2606 | 2617 | | |
2607 | 2618 | | |
2608 | 2619 | | |
2609 | | - | |
| 2620 | + | |
2610 | 2621 | | |
2611 | | - | |
2612 | | - | |
2613 | | - | |
2614 | | - | |
2615 | | - | |
2616 | 2622 | | |
2617 | 2623 | | |
2618 | 2624 | | |
2619 | | - | |
2620 | | - | |
| 2625 | + | |
| 2626 | + | |
| 2627 | + | |
| 2628 | + | |
| 2629 | + | |
| 2630 | + | |
| 2631 | + | |
| 2632 | + | |
| 2633 | + | |
| 2634 | + | |
2621 | 2635 | | |
2622 | 2636 | | |
2623 | 2637 | | |
| |||
2653 | 2667 | | |
2654 | 2668 | | |
2655 | 2669 | | |
2656 | | - | |
| 2670 | + | |
2657 | 2671 | | |
| 2672 | + | |
| 2673 | + | |
| 2674 | + | |
| 2675 | + | |
| 2676 | + | |
2658 | 2677 | | |
2659 | 2678 | | |
2660 | 2679 | | |
2661 | 2680 | | |
2662 | | - | |
2663 | | - | |
2664 | | - | |
2665 | | - | |
2666 | | - | |
2667 | | - | |
2668 | | - | |
2669 | | - | |
2670 | | - | |
| 2681 | + | |
| 2682 | + | |
2671 | 2683 | | |
2672 | 2684 | | |
2673 | 2685 | | |
| |||
0 commit comments