Forum Discussion
samudhraa
11 years agoExpert
Hi ,
I had a similar requirement awhile back . Unfortunately after asking around and searching , I found there isn't a way to find out if a post has been moved.
Thanks,
Sam
NicoB
11 years agoLithium Alumni (Retired)
Hi,
the only approach I can think about is:
Given you know the message ID you can do:
/search/messages?q=ID:[MESSAGE ID HERE]&showMoved=true
If this query returns something it means the message has been moved, otherwise it isn't.
Not very elegant, I know, but I don't know any other way to achieve this.
the only approach I can think about is:
Given you know the message ID you can do:
/search/messages?q=ID:[MESSAGE ID HERE]&showMoved=true
If this query returns something it means the message has been moved, otherwise it isn't.
Not very elegant, I know, but I don't know any other way to achieve this.
- Claudius11 years agoBoss
I compared the response of API calls to a placeholder message and the moved message at the new location. There indeed seems to be no metadata exposed that allows to tell whether a message is a placeholder. But two in combination seem to set placeholder messages apart: Their body is empty and they are set to read-only:
<body type="string"/> .... <read_only type="boolean">true</read_only>
If you disallow messages with empty bodies maybe this is already reliable enough.
Related Content
- 3 years ago
- 3 years ago
- 2 years ago
- 11 months ago