osm_hide_comment_changeset_discussion: Hide or unhide a changeset comment

View source: R/osmapi_changeset_discussion.R

osm_hide_comment_changeset_discussionR 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

  • 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

## 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)

osmapiR documentation built on April 15, 2025, 9:06 a.m.