Skip to content

Commit 5572df3

Browse files
authored
Make users optional in reaction check. (#93)
1 parent 901d7fe commit 5572df3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

R/app_server.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,19 +219,19 @@
219219
heavy_check_mark = .has_reaction(
220220
.data$reactions,
221221
c("heavy_check_mark", "question-answered", "white_check_mark"),
222-
.data$user,
223-
mentors
222+
users = .data$user,
223+
mentors = mentors
224224
),
225225
thread_tag = .has_reaction(
226226
.data$reactions,
227227
c("thread", "reply"),
228-
mentors
228+
mentors = mentors
229229
),
230230
nevermind = .has_reaction(
231231
.data$reactions,
232232
c("question-nevermind", "octagonal_sign", "nevermind"),
233-
.data$user,
234-
mentors
233+
users = .data$user,
234+
mentors = mentors
235235
)
236236
) |>
237237
dplyr::filter(
@@ -297,7 +297,7 @@
297297
#' @keywords internal
298298
.has_reaction <- function(reactions,
299299
reaction_name,
300-
users,
300+
users = character(length(reactions)),
301301
mentors = character()) {
302302
purrr::map2_lgl(
303303
reactions, users,

0 commit comments

Comments
 (0)