This passes the thread_id to hook_privatemsg_block_message() implementations and allows them to figure out if this is a reply or a new thread.

Required for #69856: Message limits and #865322: 'Reply only' rules.

Patch is simple and doesn't break compatibility with existing implementations.

CommentFileSizeAuthor
privatemsg_add_context.patch4.13 KBberdir

Comments

BenK’s picture

Will test this patch, but I'm not exactly sure what I'm testing.... I'm assuming that I pretty much won't notice any difference in functionality with this patch alone, but as long as we're not getting new errors on normal Private Message stuff it should be fine.

--Ben

berdir’s picture

Shouldn't be necessary to test this. I just wanted to be 100% sure that the tests pass. This cannot break anything :) (Famous last words... ;))

berdir’s picture

Category: task » feature
Status: Needs review » Fixed

Commited to 6.x-2.x and 7.x-1.x

Status: Fixed » Closed (fixed)

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