Error for limit to Private messages
Hi Khoros team, I have found an bug in platform today, as when I was trying to post something in private message, error says your number of limit to send messages is reached, where I have not even sent a single message from a long time. Steps to reproduce: you can add any content inside the body, can keep html and images as well. This will firstly throw an error as HTML content found in messages, but you really don't know which text content contains html, as I have typed plain text inside the body message. I have uploaded images from text editor itself and that's it. After clicking on submit this throws me error for 3 times, and then there is new message appears as your limit is reached to sent PM. which is actually not true. I have checked my inbox/sent, there was no new messages. Can you check the limit API conditions so it doesn't count the submission of posting the message on failures or error.216Views4likes4CommentsNote/PM ID - Delete scam PMs
Hey everyone, I'm thinking about making a tool to remove scam PMs sent by badusers from the inboxes of their recipients. I had a look and it seems that the unique id of a note is identical both in sent of the sender and the inbox of the receiver, so it would seem I should be able to match up sent items and received items. Has anyone looked at this or does anyone want to have a look at their community, if this assumption is correct? Basically the script would do something like this: <#assign test = true/> <#assign delete = false/> <#assign scammer_user_id = 146/> <#assign limit = 10/> <#assign query_notes_sent = restadmin("2.0","/search?q=" + "SELECT id,recipients FROM outbox_notes WHERE user.id = '${scammer_user_id}' LIMIT ${limit}"?url)/> <#list query_notes_sent.data.items as note> <#assign note_id = note.id/> <#assign recipient = note.recipients.items[0].user/> <#assign recipient_id = recipient.id/> <#assign recipient_login = recipient.login/> <#if test == true> <#assign note_subject = restadmin("/users/id/${recipient_id}/mailbox/notes/id/${note_id}/subject").value/> <#assign note_body = restadmin("/users/id/${recipient_id}/mailbox/notes/id/${note_id}/body").value/> Note ID: ${note_id}, Recipient ID: ${recipient_id}, Recipient Login: ${recipient_login}<br/> <textarea>${note_subject} ${note_body}</textarea><br/> </#if> <#if delete == true> <#assign result = restadmin("/users/id/${recipient_id}/mailbox/notes/id/${note_id}/delete")/> </#if> </#list>80Views1like0Comments