Learn R Programming

osmapiR (version 0.2.3)

osm_hide_comment_changeset_discussion: Hide or unhide a changeset comment

Description

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").

Arguments

comment_id

Note that the changeset comment id differs from the changeset id.

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_create_user_block(), osm_delete_note(), osm_redaction_object()

Examples

Run this code
if (FALSE) {
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])
}

Run the code above in your browser using DataLab