Changeset b8b931d for protocols/twitter/twitter.c
- Timestamp:
- 2020-05-07T19:33:52Z (5 years ago)
- Branches:
- master
- Children:
- b17fa67, f18209a
- Parents:
- 3da21ce
- git-author:
- Iguana <kathy@…> (07-05-20 19:33:52)
- git-committer:
- GitHub <noreply@…> (07-05-20 19:33:52)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter.c
r3da21ce rb8b931d 918 918 gboolean allow_post = 919 919 g_strcasecmp(set_getstr(&ic->acc->set, "commands"), "strict") != 0; 920 gboolean auto_populate_reply_metadata = FALSE; 920 921 bee_user_t *bu = NULL; 921 922 … … 996 997 in_reply_to = id; 997 998 allow_post = TRUE; 999 } else if (g_strcasecmp(cmd[0], "greply") == 0 && cmd[1] && cmd[2]) { 1000 id = twitter_message_id_from_command_arg(ic, cmd[1], &bu); 1001 if (!id || !bu) { 1002 twitter_log(ic, "User `%s' does not exist or didn't " 1003 "post any statuses recently", cmd[1]); 1004 goto eof; 1005 } 1006 message = new = g_strdup_printf("%s", cmd[2]); 1007 in_reply_to = id; 1008 auto_populate_reply_metadata = TRUE; 1009 allow_post = TRUE; 998 1010 } else if (g_strcasecmp(cmd[0], "rawreply") == 0 && cmd[1] && cmd[2]) { 999 1011 id = twitter_message_id_from_command_arg(ic, cmd[1], NULL); … … 1047 1059 this would delete the second-last Tweet. Prevent that. */ 1048 1060 td->last_status_id = 0; 1049 twitter_post_status(ic, message, in_reply_to );1061 twitter_post_status(ic, message, in_reply_to, auto_populate_reply_metadata); 1050 1062 } else { 1051 1063 twitter_log(ic, "Unknown command: %s", cmd[0]);
Note: See TracChangeset
for help on using the changeset viewer.