diff options
author | 2024-11-28 11:54:22 +0000 | |
---|---|---|
committer | 2024-11-28 12:54:22 +0100 | |
commit | 312cb8b9c7e13802613fef33124a4570427e75a7 (patch) | |
tree | 68f3efe630a8e93e09be2ea34b929a14c64184eb /internal/gtsmodel/notification.go | |
parent | [bugfix] Log + ignore unknown notification types (#3577) (diff) | |
download | gotosocial-312cb8b9c7e13802613fef33124a4570427e75a7.tar.xz |
[chore] rename New___(string) int signature functions to Parse___(string) int (#3580)
* rename New___(string) int {} signature functions to Parse___(string) int {}
* remove test output
Diffstat (limited to 'internal/gtsmodel/notification.go')
-rw-r--r-- | internal/gtsmodel/notification.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/gtsmodel/notification.go b/internal/gtsmodel/notification.go index 47bf7daa5..1ef805081 100644 --- a/internal/gtsmodel/notification.go +++ b/internal/gtsmodel/notification.go @@ -87,8 +87,8 @@ func (t NotificationType) String() string { } } -// NewNotificationType returns a notification type from the given value. -func NewNotificationType(in string) NotificationType { +// ParseNotificationType returns a notification type from the given value. +func ParseNotificationType(in string) NotificationType { switch strings.ToLower(in) { case "follow": return NotificationFollow |