summaryrefslogtreecommitdiff
path: root/dscuss.go
diff options
context:
space:
mode:
authorVitaly Minko <vitaly.minko@gmail.com>2019-01-18 12:39:32 +0300
committerVitaly Minko <vitaly.minko@gmail.com>2019-01-18 12:39:32 +0300
commit3e2505fb05a81d3a9959b8fd251f98dab35470c5 (patch)
tree00cacaaabc7a0780e68bcd4faf6d111885433080 /dscuss.go
parentaa316d31c70288a3319c1b2c5aad08cbce12ed78 (diff)
Implemented lshist command. Added autotests for the user history feature.
Diffstat (limited to 'dscuss.go')
-rw-r--r--dscuss.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/dscuss.go b/dscuss.go
index 529c9c3..a481336 100644
--- a/dscuss.go
+++ b/dscuss.go
@@ -309,3 +309,7 @@ func (lh *LoginHandle) RemoveModerator(id *entity.ID) error {
func (lh *LoginHandle) ListModerators() []*entity.ID {
return lh.owner.Profile.GetModerators()
}
+
+func (lh *LoginHandle) ListUserHistory() []*entity.UserHistory {
+ return lh.owner.Profile.GetFullHistory()
+}