Don't send posts to social media multiple times
Check if a post has previously been sent to social media, by checking the value of a `field_sent_to_social_media` field. This field is hidden on the node add/edit forms, and populated when a post is sent to social media. Once this happens, it will not be sent to social media again. This change also populates the field for all existing posts, so that they won't be re-sent to social media either.
This commit is contained in:
parent
8761f9c4cc
commit
8385d6fef7
10 changed files with 114 additions and 2 deletions
|
@ -7,6 +7,7 @@ dependencies:
|
|||
- field.field.node.post.field_excerpt
|
||||
- field.field.node.post.field_has_tweet
|
||||
- field.field.node.post.field_images
|
||||
- field.field.node.post.field_sent_to_social_media
|
||||
- field.field.node.post.field_series
|
||||
- field.field.node.post.field_tags
|
||||
- node.type.post
|
||||
|
@ -127,4 +128,5 @@ content:
|
|||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
hidden: { }
|
||||
hidden:
|
||||
field_sent_to_social_media: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue