summaryrefslogtreecommitdiff
path: root/internal/gtsmodel/notification.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-11-28 11:54:22 +0000
committerLibravatar GitHub <noreply@github.com>2024-11-28 12:54:22 +0100
commit312cb8b9c7e13802613fef33124a4570427e75a7 (patch)
tree68f3efe630a8e93e09be2ea34b929a14c64184eb /internal/gtsmodel/notification.go
parent[bugfix] Log + ignore unknown notification types (#3577) (diff)
downloadgotosocial-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.go4
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