Ignore:
Timestamp:
2020-05-07T19:33:52Z (12 months ago)
Author:
GitHub <noreply@…>
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)
Message:

Add support for group reply using auto_populate_reply_metadata (#146)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter.c

    r3da21ce rb8b931d  
    918918        gboolean allow_post =
    919919                g_strcasecmp(set_getstr(&ic->acc->set, "commands"), "strict") != 0;
     920        gboolean auto_populate_reply_metadata = FALSE;
    920921        bee_user_t *bu = NULL;
    921922
     
    996997                in_reply_to = id;
    997998                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;
    9981010        } else if (g_strcasecmp(cmd[0], "rawreply") == 0 && cmd[1] && cmd[2]) {
    9991011                id = twitter_message_id_from_command_arg(ic, cmd[1], NULL);
     
    10471059                   this would delete the second-last Tweet. Prevent that. */
    10481060                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);
    10501062        } else {
    10511063                twitter_log(ic, "Unknown command: %s", cmd[0]);
Note: See TracChangeset for help on using the changeset viewer.