diff options
Diffstat (limited to 'model/post.go')
-rw-r--r-- | model/post.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/model/post.go b/model/post.go index 67a418700..55e6f591d 100644 --- a/model/post.go +++ b/model/post.go @@ -205,15 +205,6 @@ func (o *Post) IsSystemMessage() bool { return len(o.Type) >= len(POST_SYSTEM_MESSAGE_PREFIX) && o.Type[:len(POST_SYSTEM_MESSAGE_PREFIX)] == POST_SYSTEM_MESSAGE_PREFIX } -func (o *Post) IsUserActivitySystemMessage() bool { - return o.Type == POST_JOIN_LEAVE || - o.Type == POST_JOIN_CHANNEL || - o.Type == POST_LEAVE_CHANNEL || - o.Type == POST_ADD_REMOVE || - o.Type == POST_ADD_TO_CHANNEL || - o.Type == POST_REMOVE_FROM_CHANNEL -} - func (p *Post) Patch(patch *PostPatch) { if patch.IsPinned != nil { p.IsPinned = *patch.IsPinned |