How to change the max length for direct messages via the flag button

(Christoph) #1

The default maximum number of characters for direct messages via the flag button seems to be 500 characters. I’d like to increase that a bit but can’t find the setting for it… Where should I look? If if doesn’t exist, please treat this as a “feature” request.

(Eli the Bearded) #2

The 500 appears to be set here:

It does not look like it is designed to be configurable.

(Adam C. Engst) #3

Has there been any movement on this? I keep running into the 500 character max length when using the flag button to plink users about their behavior.

(Kane York) #4

The workaround is to click on the avatar to open up the user card, and click Message from there.

(Christoph) #5

Or if you want to message to be linked to the post (“You messaged this user” or whatever it says), you can also:

  1. compose the meddsge in full length
  2. then copy it to the clipboard and
  3. delete all but the first paragraph or so (less than 500 characters)
  4. submit the message
  5. immediately navigate to the message in your messages
  6. Edit it within the grace editing period by pasting in the full length message.

(Adam C. Engst) #6

Thanks for the workarounds, folks. It’s great that they exist, but the mere fact of their existence would seem to suggest that it would be welcome if this setting was configurable, perhaps separately for users and admins.

(Jeff Atwood) #7

We generally rate by number and intensity of requests, and this one is currently at… background radiation levels. :sun_with_face:

(James Kiesel) #8

Maybe its PR welcome? If I were a first time contributor looking to get a first PR together i’d be salivating at an easy win like this.

(Sam Saffron) #9

It’s a bit of a can of worms cause next you want preview as well…

(Jeff Atwood) #10

This is a “turn my car into a truck” type of request. It shouldn’t be honored, and if it was, that would indicate the project was mismanaged and therefore doomed.

(Christoph) #11

I don’t get this analogy at all. Could you explain? How does modifying the max number of characters in flag messages turn discourse into something else?

That’s a bit unfair. Nobody said anything about preview.

(Sam Saffron) #12

The longer the message your are typing the more likely it is that you want preview, and a full composer and so on. It’s just the way it works.

Honestly, I am far more enthused by a “switch to full composer” button vs fiddling with the limits … and I am not #pr-welcome on that quite yet.

(Christoph) #13

I think that would indeed be a very good solution. So if such a button would be easy to implement, does that mean that the only reason why there is a special flag-button-message-editor is to be able to limit the number of characters?

(Jeff Atwood) #14

See Listen to Your Community, But Don't Let Them Tell You What to Do

(Christoph) #15

Okay, then I’d say: this feature request is definitely the electric windows, not the truck.

(Jeff Atwood) #16

See above ↑ ↑ ↑

The whole point of the form is to keep it simple and use a short, succinct summary … not write War and Peace that nobody’s gonna read.

Plus if you want to write War and Peace to someone, exactly nobody is stopping you from doing so – you can initiate a personal message in about 5 different other ways.

(James Kiesel) #17

I wrote a plugin that does this, as it’s bugged me before too:

(Adam C. Engst) #18

To be clear, I don’t really care all that much about this—the lack of the setting and the reliance on the workarounds simply feel at odds with nearly everything else I’ve experienced with Discourse, which is otherwise delightfully customizable.

Plus, having one message composer be constrained with a hard-coded limit and another unconstrained feels less efficient than having a single abstracted composer. Not that I know anything about how the code works under the hood, of course, and code that’s written is always more efficient than code that’s not written. :slight_smile:

That would also address the issue, and in a more discoverable way than a setting.

(Jeff Atwood) #19