Skip to content

Commit

Permalink
Make users optional in reaction check. (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonthegeek authored Apr 11, 2024
1 parent 901d7fe commit 5572df3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions R/app_server.R
Original file line number Diff line number Diff line change
Expand Up @@ -219,19 +219,19 @@
heavy_check_mark = .has_reaction(
.data$reactions,
c("heavy_check_mark", "question-answered", "white_check_mark"),
.data$user,
mentors
users = .data$user,
mentors = mentors
),
thread_tag = .has_reaction(
.data$reactions,
c("thread", "reply"),
mentors
mentors = mentors
),
nevermind = .has_reaction(
.data$reactions,
c("question-nevermind", "octagonal_sign", "nevermind"),
.data$user,
mentors
users = .data$user,
mentors = mentors
)
) |>
dplyr::filter(
Expand Down Expand Up @@ -297,7 +297,7 @@
#' @keywords internal
.has_reaction <- function(reactions,
reaction_name,
users,
users = character(length(reactions)),
mentors = character()) {
purrr::map2_lgl(
reactions, users,
Expand Down

0 comments on commit 5572df3

Please sign in to comment.