https://web.archive.org/web/20120516160451/https://dev.twitter.com/docs/api/1/get/users/suggestions
(c *fiber.Ctx)
| 278 | |
| 279 | // https://web.archive.org/web/20120516160451/https://dev.twitter.com/docs/api/1/get/users/suggestions |
| 280 | func SuggestedTopics(c *fiber.Ctx) error { |
| 281 | // I think this is hard coded in? |
| 282 | // It expects a size, but uhhh, it can be unlimited on bsky sooooo... |
| 283 | // It might be worth it later to get the config for this |
| 284 | // Also localization |
| 285 | suggestions := []bridge.TopicSuggestion{} |
| 286 | |
| 287 | for slug, name := range topicLookup { |
| 288 | suggestions = append(suggestions, bridge.TopicSuggestion{ |
| 289 | Name: name, |
| 290 | Slug: slug, |
| 291 | Size: 20, |
| 292 | }) |
| 293 | } |
| 294 | return EncodeAndSend(c, suggestions) |
| 295 | } |
| 296 | |
| 297 | // https://web.archive.org/web/20120516160741/https://dev.twitter.com/docs/api/1/get/users/suggestions/%3Aslug |
| 298 | func GetTopicSuggestedUsers(c *fiber.Ctx) error { |
nothing calls this directly
no test coverage detected