A fork of the Cocoon PDS but being made more distributed.
11

Configure Feed

Select the types of activity you want to include in your feed.

if prefs are null in db, don't return {} on getPrefs (#8)

currently if you haven't putPreferences at all you break social-app,
since it expects response.preferences to always be present

authored by

charlotte ✨ and committed by
GitHub
(Apr 28, 2025, 3:33 PM -0700) e29f103c affaa58b

+1 -1
+1 -1
server/handle_actor_get_preferences.go
··· 14 14 15 15 var prefs map[string]any 16 16 err := json.Unmarshal(repo.Preferences, &prefs) 17 - if err != nil { 17 + if err != nil || prefs == nil { 18 18 prefs = map[string]any{ 19 19 "preferences": map[string]any{}, 20 20 }