summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/proto.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-07-28 09:14:46 +0000
committerRobert Pösel <robyer@seznam.cz>2013-07-28 09:14:46 +0000
commit67f7907942b58a7b445e4da25c2398abb8db8572 (patch)
tree052d3dea556ae5d977e8561c9a90762edc2d0149 /protocols/FacebookRM/src/proto.cpp
parent6cefd27d57dc8a0806136703f4ff96420cfd43b4 (diff)
Facebook: Post status improvements (part 1) - ability to post URL attachments
git-svn-id: http://svn.miranda-ng.org/main/trunk@5502 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/proto.cpp')
-rw-r--r--protocols/FacebookRM/src/proto.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp
index 41ac1cef71..1773b51ff2 100644
--- a/protocols/FacebookRM/src/proto.cpp
+++ b/protocols/FacebookRM/src/proto.cpp
@@ -203,10 +203,18 @@ int FacebookProto::SetAwayMsg(int status, const PROTOCHAR *msg)
return 0;
}
-void FacebookProto::SetAwayMsgWorker(void *)
-{
- if (!last_status_msg_.empty())
- facy.set_status(last_status_msg_);
+void FacebookProto::SetAwayMsgWorker(void *p)
+{
+ if (p != NULL) {
+ status_data *data = static_cast<status_data*>(p);
+ facy.post_status(data);
+ delete data;
+ } else if (!last_status_msg_.empty()) {
+ status_data data;
+ data.text = last_status_msg_;
+ data.privacy = facy.get_privacy_type();
+ facy.post_status(&data);
+ }
}
HANDLE FacebookProto::SearchBasic(const PROTOCHAR* id)