mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature] Implement markers API (#1989)
* Implement markers API Fixes #1856 * Correct import grouping in markers files * Regenerate Swagger for markers API * Shorten names for readability * Cache markers for 6 hours * Update DB ref * Update envparsing.sh
This commit is contained in:
@@ -37,3 +37,13 @@ func APIVisToVis(m apimodel.Visibility) gtsmodel.Visibility {
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func APIMarkerNameToMarkerName(m apimodel.MarkerName) gtsmodel.MarkerName {
|
||||
switch m {
|
||||
case apimodel.MarkerNameHome:
|
||||
return gtsmodel.MarkerNameHome
|
||||
case apimodel.MarkerNameNotifications:
|
||||
return gtsmodel.MarkerNameNotifications
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user