code: def save_data(self, trigger_id, **data):
          
          title, content = super(ServiceMastodon, self).save_data(trigger_id, **data)
          # check if we have a 'good' title
          if self.title_or_content(title):
              content = str("{title} {link}").format(title=title, link=data.get('link'))
              content += get_tags(Mastodon, trigger_id)
          # if not then use the content
          else:
              content += " " + data.get('link') + " " + get_tags(Mastodon, trigger_id)
          content = self.set_mastodon_content(content)
  
          us = UserService.objects.get(user=self.user, token=self.token, name='ServiceMastodon')
          try:
              toot_api = MastodonAPI(client_id=us.client_id, client_secret=us.client_secret, access_token=self.token,
                                     api_base_url=us.host)
          except ValueError as e:
              logger.error(e)
              status = False
              update_result(trigger_id, msg=e, status=status)
  
          media_ids = None
          try:
              if settings.DJANGO_TH['sharing_media']:
                  # do we have a media in the content ?
                  content, media = self.media_in_content(content)
                  if media:
                      # upload the media first
                      media_ids = toot_api.media_post(media_file=media)
                      media_ids = [media_ids]
              toot_api.status_post(content, media_ids=media_ids)
  
              status = True
          except Exception as inst:
              logger.critical("Mastodon ERR {}".format(inst))
              status = False
              update_result(trigger_id, msg=inst, status=status)
          return status
docs: let's save the data
  
              :param trigger_id: trigger ID from which to save data
              :param data: the data to check to be used and save
              :type trigger_id: int
              :type data:  dict
              :return: the status of the save statement
              :rtype: boolean