osm_hide_comment_changeset_discussion {osmapiR}R Documentation

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)

Arguments

comment_id

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

Value

Returns a data frame with the changeset (same format as osm_get_changesets() with format = "R").

Functions

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

## Not run: 
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])

## End(Not run)

[Package osmapiR version 0.1.0 Index]