Hide or unhide a changeset comment
Source:R/osmapi_changeset_discussion.R
osm_hide_comment_changeset_discussion.Rd
This request needs to be done as an authenticated user with moderator role.
Usage
osm_hide_comment_changeset_discussion(comment_id)
osm_unhide_comment_changeset_discussion(comment_id)
Value
Returns a data frame with the changeset (same format as osm_get_changesets()
with format = "R"
).
Functions
osm_hide_comment_changeset_discussion()
: Sets visible flag on changeset comment to false.osm_unhide_comment_changeset_discussion()
: Sets visible flag on changeset comment to true.
See also
Other changeset discussion's functions:
osm_comment_changeset_discussion()
,
osm_subscribe_changeset_discussion()
Other functions for moderators:
osm_delete_note()
,
osm_redaction_object()
Examples
if (FALSE) { # \dontrun{
chdis <- osm_get_changesets("265646", include_discussion = TRUE)
hide_com <- osm_hide_comment_changeset_discussion(comment_id = chdis$discussion[[1]]$id[1])
unhide_com <- osm_unhide_comment_changeset_discussion(comment_id = chdis$discussion[[1]]$id[1])
} # }