diff options
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -2009,7 +2009,8 @@ int was_question_voted(snac *user, const char *id) | |||
| 2009 | xs *obj = NULL; | 2009 | xs *obj = NULL; |
| 2010 | 2010 | ||
| 2011 | if (valid_status(object_get_by_md5(md5, &obj))) { | 2011 | if (valid_status(object_get_by_md5(md5, &obj))) { |
| 2012 | if (strcmp(xs_dict_get(obj, "attributedTo"), user->actor) == 0) { | 2012 | if (strcmp(xs_dict_get(obj, "attributedTo"), user->actor) == 0 && |
| 2013 | !xs_is_null(xs_dict_get(obj, "name"))) { | ||
| 2013 | voted = 1; | 2014 | voted = 1; |
| 2014 | break; | 2015 | break; |
| 2015 | } | 2016 | } |