Prevent duplicate image upload on post creation / edition

Created on 12 September 2023, 10 months ago

Problem/Motivation

Media is uploaded to Hootsuite twice. So we need to check whether the linked media image was already uploaded when posting a message to hootsuite.

Steps to reproduce

Proposed resolution

- adds a new field on file entity (field_hs_id) to store hootsuite id of the media into the Drupal file entity
- Add a check on the postMessage call of the HootSuitePostManager to verify that the associated media image is not already uploaded

Remaining tasks

The postMessage method delete the existing post in hootsuite on every post update... I can't find why, and I would suggest to rather fetch existing post and edit it.

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

3.0

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland pvbergen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024