Skip to content

Commit 00e541c

Browse files
add get_topic_url_by_external_id
1 parent 341dbd1 commit 00e541c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/discourse_api/api/topics.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ def bookmark_topic(topic_id)
119119
def remove_topic_bookmark(topic_id)
120120
put("/t/#{topic_id}/remove_bookmarks.json")
121121
end
122+
123+
def get_topic_url_by_external_id(external_id)
124+
get("/t/external_id/#{external_id}")
125+
end
122126
end
123127
end
124128
end

0 commit comments

Comments
 (0)