Problem/Motivation

It is just a little bit annoying that the microblog delay field does not have a default value, so we should add this, and it should probably default to 'none'

Issue fork mposse-3554904

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

megakeegman created an issue. See original summary.

megakeegman’s picture

Issue tags: +Drupalcon Chicago 2026

Along with this issue, it might be good to improve the field description in the UI to be more specific. Essentially, when a microblog gets published, the delay is effectively a syndication debounce. With a delay active, social posts via mposse will not go out until the time period defined in the delay field is expired. Every time the microblog or the subject node of that microblog is saved again, the delay timer is reset. The purpose of this is to provide a safety for indecisive content editors/managers. I may split this out as a separate issue.

rachel_norfolk’s picture

Issue tags: -Drupalcon Chicago 2026 +Chicago2026

Correcting the issue tag for DrupalCon

megakeegman’s picture

I went to update the config here, but then ran into this core issue, where the field edit form cannot be saved for a list_integer field if one of the allowed values is set to 0: https://www.drupal.org/project/drupal/issues/3534125

So I think I need to find an example of setting a default value in a config/install file.

megakeegman’s picture

Status: Active » Needs review

There was a nearby example right in the sent status field config install.

megakeegman’s picture

2 things to review here:

  1. on a fresh install, the default value of mposse delay field (on microblog node) should be set to 0 (No delay)
  2. same thing, but on an existing installation after applying database updates
wolcen’s picture

Status: Needs review » Reviewed & tested by the community

Walked through:
- add to new codebase, got default
- ran update hook on existing codebase updated default

  • megakeegman committed 7a223293 on 1.0.x
    fix: #3554904 Microblog delay should have a default value set
    
megakeegman’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the review!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.